You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1927,6 +1928,14 @@ class TestFunctions : public TestFixture {
1927
1928
ASSERT_EQUALS("[test.cpp:3:19]: (error) Found an exit path from function with non-void return type that has missing return statement [missingReturn]\n", errout_str());
1928
1929
}
1929
1930
1931
+
voidcheckMissingReturn8() {
1932
+
const Settings s = settingsBuilder(settings).cpp(Standards::CPP20).build();
1933
+
check("boost::asio::awaitable<void> test() {\n"
1934
+
" co_return;\n"
1935
+
"}\n",s);
1936
+
ASSERT_EQUALS("", errout_str());
1937
+
}
1938
+
1930
1939
voidcheckMissingReturnStdInt() {// #14482 - FN
1931
1940
check("std::int32_t f() {}\n");
1932
1941
ASSERT_EQUALS("[test.cpp:1:19]: (error) Found an exit path from function with non-void return type that has missing return statement [missingReturn]\n", errout_str());
0 commit comments