xref: /llvm-project/clang/test/CodeGen/2003-08-18-StructAsValue.c (revision 85e5156598b1bbad0ae41cf4d0d5b845dd655ffd)
1 // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2 
3 
4 typedef struct {
5   int op;
6 } event_t;
7 
test(int X)8 event_t test(int X) {
9   event_t foo = { 1 }, bar = { 2 };
10   return X ? foo : bar;
11 }
12