blob: f5ced1adfdc59ff5a4e02ad65638507ab719cc95 (
plain)
1
2
3
4
5
6
|
// PR c++/46538
// { dg-do compile }
// { dg-options "" }
S () : str(__PRETTY_FUNCTION__) {} // { dg-error "forbids declaration" "decl" }
// { dg-error "only constructors" "constructor" { target *-*-* } .-1 }
|