You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
172 B
12 lines
172 B
7 months ago
|
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
|
||
|
|
||
|
|
||
|
typedef struct {
|
||
|
int op;
|
||
|
} event_t;
|
||
|
|
||
|
event_t test(int X) {
|
||
|
event_t foo = { 1 }, bar = { 2 };
|
||
|
return X ? foo : bar;
|
||
|
}
|