1 // { dg-do compile { target c++14 } }
2 // { dg-additional-options "-Wno-return-type" }
3
f()4 auto f() { return; } // OK, return type is void
g()5 auto* g() { return; } // { dg-error "no value" }
h()6 auto* h() { } // { dg-error "no return statements" }
7