2004-11-06 22:41:00 +00:00
|
|
|
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
|
|
|
|
|
2002-07-30 06:05:40 +00:00
|
|
|
|
|
|
|
union X {
|
|
|
|
void *B;
|
|
|
|
};
|
|
|
|
|
2002-07-31 17:54:24 +00:00
|
|
|
union X foo() {
|
2005-04-23 21:26:11 +00:00
|
|
|
union X A;
|
|
|
|
A.B = (void*)123;
|
|
|
|
return A;
|
2002-07-30 06:05:40 +00:00
|
|
|
}
|