diff --git a/test/testfunctions.cpp b/test/testfunctions.cpp index 9eca6b483..c0e055bfd 100644 --- a/test/testfunctions.cpp +++ b/test/testfunctions.cpp @@ -1510,6 +1510,9 @@ private: check("int f(int x) { if (x) return 1; else return bar({1}, {}); }"); ASSERT_EQUALS("", errout.str()); + + check("auto f() -> void {}"); // #10342 + ASSERT_EQUALS("", errout.str()); } // NRVO check