blob: 649eadc4e45110a262ed5f67b35f3acf4971bc43 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2
3
4typedef struct {
5 int op;
6} event_t;
7
8event_t test(int X) {
9 event_t foo = { 1 }, bar = { 2 };
10 return X ? foo : bar;
11}