☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn11.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/auto-fn11.C
code
plain
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" }