blob: 51b503bf607e607b92a354066bb1390269b2b70d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* { dg-do compile } */
/* { dg-options "-Wc++-compat" } */
struct { int f1; } g1; /* { dg-warning "C\[+\]\[+\]" } */
static struct { int f2; } g2;
struct s { int f3; } g3;
union { int f4; } g4; /* { dg-warning "C\[+\]\[+\]" } */
static union { int f5; } g5;
union u { int f6; } g6;
enum { A } g7; /* { dg-warning "C\[+\]\[+\]" } */
static enum { B } g8;
enum E { C } g9;
|