☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
other
/
error34.C
☽
☼
gcc/testsuite/g++.dg/other/error34.C
code
plain
raw
1
// PR c++/46538
2
// { dg-do compile }
3
// { dg-options "" }
4
5
S () : str(__PRETTY_FUNCTION__) { return S(); } // { dg-error "1:ISO C\\+\\+ forbids declaration" "decl" }
6
// { dg-error "only constructors" "constructor" { target *-*-* } .-1 }