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