Debian Codegraph @

gcc/testsuite/gcc.dg/pr118765-3.c

raw
1 /* { dg-do "compile" } */
2 /* { dg-options "-std=gnu23" } */
3
4 typedef struct q { int x; } q_t;
5 typedef struct q q_t;
6 typedef struct q { int x; } q_t;
7 typedef struct q q_t;
8 typedef struct q { int x; } q_t;
9
10 typedef struct r r_t;
11 typedef struct r r_t;
12 typedef struct r r_t;
13 typedef struct r r_t;
14 typedef struct r r_t;
15
16 extern struct s { int x; } s;
17 extern struct s s;
18 extern struct s { int x; } s;
19 extern struct s s;
20 extern struct s { int x; } s;
21
22 struct t { int x; };
23 struct t;
24 struct t { int x; };
25 struct t;
26 struct t { int x; };
27
28 typedef enum e { E = 1 } e_t;
29 typedef enum e_t; /* { dg-warning "useless storage class specifier in empty declaration" } */
30 typedef enum e { E = 1 } e_t;
31 typedef enum e_t; /* { dg-warning "empty declaration with storage class specifier does not redeclare tag" } */
32 typedef enum e { E = 1 } e_t;
33