]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/CodeGen/2003-08-18-StructAsValue.c
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / CodeGen / 2003-08-18-StructAsValue.c
CommitLineData
223e47cc
LB
1// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
3
4typedef struct {
5 int op;
6} event_t;
7
8event_t test(int X) {
9 event_t foo = { 1 }, bar = { 2 };
10 return X ? foo : bar;
11}