llvm.org GIT mirror llvm / 2fdd3c0 test / CFrontend / 2003-08-18-StructAsValue.c
2fdd3c0

Tree @2fdd3c0 (Download .tar.gz)

2003-08-18-StructAsValue.c @2fdd3c0raw · history · blame

1
2
3
4
5
6
7
8
typedef struct {
  int op;
} event_t;

event_t test(int X) {
  event_t foo = { 1 }, bar = { 2 };
  return X ? foo : bar;
}