1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 22:42:52 +01:00
llvm-mirror/test/Regression/CFrontend/2003-08-18-StructAsValue.c
Chris Lattner 1c45564d70 Make the testcase more interesting
llvm-svn: 7961
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;
}