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