New testcase, for PR 115
[oota-llvm.git] / test / CFrontend / 2002-07-30-UnionTest.c
1 union X;
2 struct Empty {};
3 union F {};
4 union Q { union Q *X; };
5 union X {
6   char C;
7   int A, Z;
8   long long B; 
9   void *b1;
10   struct { int A; long long Z; } Q;
11 };
12
13 union X foo(union X A) {
14         A.C = 123;
15         A.A = 39249;
16         //A.B = (void*)123040123321;
17         A.B = 12301230123123LL;
18         A.Z = 1;
19         return A;
20 }