1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-02 00:42:52 +01:00
llvm-mirror/test/CFrontend/2003-08-18-StructAsValue.c
2007-01-17 07:59:14 +00:00

12 lines
179 B
C

// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
typedef struct {
int op;
} event_t;
event_t test(int X) {
event_t foo = { 1 }, bar = { 2 };
return X ? foo : bar;
}