[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / 2002-12-15-StructParameters.c
blob4f0e41e5847af19c705c60c633f4abaa0804df7a
1 // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
3 typedef struct
5 void *stack;
6 unsigned size;
7 unsigned avail;
8 } compile_stack_type;
10 void foo(void*);
11 void bar(compile_stack_type T, unsigned);
13 void test(void) {
14 compile_stack_type CST;
15 foo(&CST);
17 bar(CST, 12);