Debian Codegraph @

gcc/testsuite/g++.dg/other/error34.C

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 }