Add include needed for MSVC.
[clang/acc.git] / test / Sema / nested-redef.c
blobea180910128b95ca100ad721a106c1155208505f
1 // RUN: clang-cc -fsyntax-only -verify %s
2 struct X { // expected-note{{previous definition is here}}
3 struct X { } x; // expected-error{{nested redefinition of 'X'}}
4 };
6 struct Y { };
7 void f(void) {
8 struct Y { }; // okay: this is a different Y
11 struct T;
12 struct Z {
13 struct T { int x; } t;
14 struct U { int x; } u;
17 void f2(void) {
18 struct T t;
19 struct U u;