[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / PR2743-reference-missing-static.c
blobb653d04af7f5b13ace68f33f4d5726bc75b67ace
1 // RUN: %clang_cc1 -emit-llvm -o %t %s
2 // PR2743
3 // <rdr://6094512>
5 /* CodeGen should handle this even if it makes it past
6 sema. Unfortunately this test will become useless once sema starts
7 rejecting this. */
9 static void e0(void);
10 void f0(void) { e0(); }
12 inline void e1(void);
13 void f1(void) { e1(); }
15 void e2(void) __attribute__((weak));
16 void f2(void) { e2(); }