c++, coroutines: Simplify separation of the user function body and ramp.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn11.C
blob9d79fb61e960ff3803f4ae52dc2b3157c5fc9696
1 // { dg-do compile { target c++14 } }
2 // { dg-additional-options "-Wno-return-type" }
4 auto f() { return; }            // OK, return type is void
5 auto* g() { return; }           // { dg-error "no value" }
6 auto* h() { }                   // { dg-error "no return statements" }