[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / 2003-08-18-StructAsValue.c
blob9b8b5a2b1c19b706539058e86ce1cca9d8cd692d
1 // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
4 typedef struct {
5 int op;
6 } event_t;
8 event_t test(int X) {
9 event_t foo = { 1 }, bar = { 2 };
10 return X ? foo : bar;