Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/auto-fn11.C

raw
1 // { dg-do compile { target c++14 } }
2 // { dg-additional-options "-Wno-return-type" }
3
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" }