Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn11.C
blob: 9d79fb61e960ff3803f4ae52dc2b3157c5fc9696 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++14 } }
// { dg-additional-options "-Wno-return-type" }
auto
f
()
{
return
;
}
// OK, return type is void
auto
*
g
()
{
return
;
}
// { dg-error "no value" }
auto
*
h
()
{
}
// { dg-error "no return statements" }