xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/PR2743-reference-missing-static.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -o %t %s
2*f4a2713aSLionel Sambuc // PR2743
3*f4a2713aSLionel Sambuc // <rdr://6094512>
4*f4a2713aSLionel Sambuc 
5*f4a2713aSLionel Sambuc /* CodeGen should handle this even if it makes it past
6*f4a2713aSLionel Sambuc    sema. Unfortunately this test will become useless once sema starts
7*f4a2713aSLionel Sambuc    rejecting this. */
8*f4a2713aSLionel Sambuc 
9*f4a2713aSLionel Sambuc static void e0();
f0()10*f4a2713aSLionel Sambuc void f0() { e0(); }
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc inline void e1();
f1()13*f4a2713aSLionel Sambuc void f1() { e1(); }
14*f4a2713aSLionel Sambuc 
15*f4a2713aSLionel Sambuc void e2() __attribute__((weak));
f2()16*f4a2713aSLionel Sambuc void f2() { e2(); }
17