repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn11.C
blob
9d79fb61e960ff3803f4ae52dc2b3157c5fc9696
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" }