1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 struct X
{ // expected-note{{previous definition is here}}
3 struct X
{ } x
; // expected-error{{nested redefinition of 'X'}}
8 struct Y
{ }; // okay: this is a different Y
13 struct T
{ int x
; } t
;
14 struct U
{ int x
; } u
;
23 struct G
{ // expected-note{{previous definition is here}}
24 struct G
{}; // expected-error{{nested redefinition of 'G'}}
29 struct G
{ // expected-note 2{{previous definition is here}}
30 struct G
{}; // expected-error{{nested redefinition of 'G'}}
33 struct G
{}; // expected-error{{redefinition of 'G'}}