2004-11-07 06:41:00 +08:00
|
|
|
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
|
|
|
|
|
2002-07-30 14:05:40 +08:00
|
|
|
|
|
|
|
union X {
|
|
|
|
void *B;
|
|
|
|
};
|
|
|
|
|
2002-08-01 01:54:24 +08:00
|
|
|
union X foo() {
|
2002-07-30 14:07:16 +08:00
|
|
|
union X A;
|
2002-08-01 01:54:24 +08:00
|
|
|
A.B = (void*)123;
|
|
|
|
return A;
|
2002-07-30 14:05:40 +08:00
|
|
|
}
|