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