xref: /llvm-project/clang/test/CodeGen/PR2743-reference-missing-static.c (revision 1ea584377e7897f7df5302ed9cd378d17be14fbf)
1 // RUN: %clang_cc1 -emit-llvm -o %t %s
2 // PR2743
3 // <rdr://6094512>
4 
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. */
8 
9 static void e0(void);
f0(void)10 void f0(void) { e0(); }
11 
12 inline void e1(void);
f1(void)13 void f1(void) { e1(); }
14 
15 void e2(void) __attribute__((weak));
f2(void)16 void f2(void) { e2(); }
17