2004-11-06 22:41:00 +00:00
|
|
|
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
|
|
|
|
|
2003-08-18 20:19:18 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int op;
|
|
|
|
} event_t;
|
|
|
|
|
|
|
|
event_t test(int X) {
|
2003-08-18 21:44:10 +00:00
|
|
|
event_t foo = { 1 }, bar = { 2 };
|
2003-08-18 20:19:18 +00:00
|
|
|
return X ? foo : bar;
|
|
|
|
}
|