hanchenye-llvm-project/llvm/test/Regression/CFrontend/2003-08-18-StructAsValue.c

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;
}