blob: 132f959db2987636d330fc882eedf66812846ec1 (
plain)
1
2
3
4
5
|
// { dg-do compile { target c++1y } }
auto f() { return; } // OK, return type is void
auto* g() { return; } // { dg-error "no value" }
auto* h() { } // { dg-error "no return statements" }
|