Skip to content

Commit 80578c3

Browse files
Add test for #10342 (#3567)
1 parent 51d0f12 commit 80578c3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/testfunctions.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,9 @@ class TestFunctions : public TestFixture {
15101510

15111511
check("int f(int x) { if (x) return 1; else return bar({1}, {}); }");
15121512
ASSERT_EQUALS("", errout.str());
1513+
1514+
check("auto f() -> void {}"); // #10342
1515+
ASSERT_EQUALS("", errout.str());
15131516
}
15141517

15151518
// NRVO check

0 commit comments

Comments
 (0)