blob: 634ed3f61bf2c3a6bbbfc74a413dd79b3547a28a [file] [log] [blame]
Tanya Lattnere9af5d12004-11-06 22:41:00 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2
Chris Lattner731240c2002-07-30 06:47:29 +00003union X;
4struct Empty {};
5union F {};
6union Q { union Q *X; };
7union X {
8 char C;
9 int A, Z;
10 long long B;
11 void *b1;
12 struct { int A; long long Z; } Q;
13};
14
15union X foo(union X A) {
16 A.C = 123;
17 A.A = 39249;
18 //A.B = (void*)123040123321;
19 A.B = 12301230123123LL;
20 A.Z = 1;
21 return A;
22}