1 // { dg-do assemble } 2 // Origin: Jakub Jelinek <jakub@redhat.com> 3 4 struct foo 5 { 6 enum e 7 { 8 not // { dg-error "" } 9 }; // { dg-bogus "" } 10 ~foo(); // { dg-bogus "" "" { xfail *-*-* } } 11 void x (foo *&a, bool b = (unsigned char)0); 12 }; // { dg-bogus "" "" { xfail *-*-* } } 13 14 namespace N 15 { 16 struct bar; 17 18 template<class T> 19 struct baz 20 { 21 baz(T *p); 22 }; 23 24 typedef baz<bar> c; 25 } 26 27 { 28 int a; 29 }; 30