1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc typedef struct { 5*f4a2713aSLionel Sambuc int op; 6*f4a2713aSLionel Sambuc } event_t; 7*f4a2713aSLionel Sambuc test(int X)8*f4a2713aSLionel Sambucevent_t test(int X) { 9*f4a2713aSLionel Sambuc event_t foo = { 1 }, bar = { 2 }; 10*f4a2713aSLionel Sambuc return X ? foo : bar; 11*f4a2713aSLionel Sambuc } 12