111
|
1 /* { dg-do compile } */
|
|
2 /* { dg-options "-Wc++-compat" } */
|
|
3
|
|
4 typedef int myint1;
|
|
5 typedef int myint2;
|
|
6 typedef int myint3;
|
|
7 struct s1
|
|
8 {
|
|
9 myint1 myint1; /* { dg-warning "invalid in C\[+\]\[+\]" } */
|
|
10 myint2 *myint2; /* { dg-warning "invalid in C\[+\]\[+\]" } */
|
|
11 int myint3;
|
|
12 struct s2
|
|
13 {
|
|
14 myint3 f2; /* { dg-warning "C\[+\]\[+\]" } */
|
|
15 } f1;
|
|
16 };
|
|
17
|
|
18 struct s3
|
|
19 {
|
|
20 int myint1;
|
|
21 struct s4
|
|
22 {
|
|
23 int myint1;
|
|
24 } f1;
|
|
25 struct s5
|
|
26 {
|
|
27 int myint1;
|
|
28 struct s6
|
|
29 {
|
|
30 myint1 f4; /* { dg-warning "C\[+\]\[+\]" } */
|
|
31 } f3;
|
|
32 } f2;
|
|
33 };
|