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
Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
error34.C
blob
f6b44888f4802048eebad204897f1183becb5fa6
1
// PR c++/46538
2
// { dg-do compile }
3
// { dg-options "" }
4
5
S () : str(__PRETTY_FUNCTION__) { return S(); } // { dg-error "forbids declaration" "decl" }
6
// { dg-error "only constructors" "constructor" { target *-*-* } .-1 }