annotate gcc/testsuite/gcc.dg/Wcxx-compat-15.c @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-Wc++-compat" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 typedef int myint1;
kono
parents:
diff changeset
5 typedef int myint2;
kono
parents:
diff changeset
6 typedef int myint3;
kono
parents:
diff changeset
7 struct s1
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 myint1 myint1; /* { dg-warning "invalid in C\[+\]\[+\]" } */
kono
parents:
diff changeset
10 myint2 *myint2; /* { dg-warning "invalid in C\[+\]\[+\]" } */
kono
parents:
diff changeset
11 int myint3;
kono
parents:
diff changeset
12 struct s2
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 myint3 f2; /* { dg-warning "C\[+\]\[+\]" } */
kono
parents:
diff changeset
15 } f1;
kono
parents:
diff changeset
16 };
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 struct s3
kono
parents:
diff changeset
19 {
kono
parents:
diff changeset
20 int myint1;
kono
parents:
diff changeset
21 struct s4
kono
parents:
diff changeset
22 {
kono
parents:
diff changeset
23 int myint1;
kono
parents:
diff changeset
24 } f1;
kono
parents:
diff changeset
25 struct s5
kono
parents:
diff changeset
26 {
kono
parents:
diff changeset
27 int myint1;
kono
parents:
diff changeset
28 struct s6
kono
parents:
diff changeset
29 {
kono
parents:
diff changeset
30 myint1 f4; /* { dg-warning "C\[+\]\[+\]" } */
kono
parents:
diff changeset
31 } f3;
kono
parents:
diff changeset
32 } f2;
kono
parents:
diff changeset
33 };