llvm-6502/test/CFrontend/2003-08-18-StructAsValue.c
Chris Lattner 134480cb1b Make the testcase more interesting
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7961 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-18 21:44:10 +00:00

10 lines
124 B
C

typedef struct {
int op;
} event_t;
event_t test(int X) {
event_t foo = { 1 }, bar = { 2 };
return X ? foo : bar;
}