blob: 26cb78a4d24376d7f0946a54b460603f17f5c6df [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
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}