1/* A redefinition of an empty struct should be diagnosed the same as a
2   redefinition of any other tag, but formerly only s2 and s4 were
3   diagnosed.  Bug 17188.  */
4/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
5/* { dg-do compile } */
6/* { dg-options "" } */
7
8struct s0 { };
9struct s0;
10struct s0 { }; /* { dg-error "error: redefinition of 'struct s0'" } */
11
12struct s1 { };
13struct s1 { }; /* { dg-error "error: redefinition of 'struct s1'" } */
14
15struct s2 { int a : 1; };
16struct s2 { int a : 1; }; /* { dg-error "error: redefinition of 'struct s2'" } */
17
18struct s3 { };
19struct s3 { int a : 1; }; /* { dg-error "error: redefinition of 'struct s3'" } */
20
21struct s4 { int a : 1; };
22struct s4 { }; /* { dg-error "error: redefinition of 'struct s4'" } */
23
24struct s5 { int a : 1; };
25struct s5;
26
27struct s6;
28struct s6 { int a : 1; };
29
30struct s7;
31struct s7 { };
32