Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o %t %s |
Daniel Dunbar | 219df66 | 2008-09-08 23:44:31 +0000 | [diff] [blame] | 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(); | ||||
10 | void f0() { e0(); } | ||||
11 | |||||
12 | inline void e1(); | ||||
13 | void f1() { e1(); } | ||||
14 | |||||
15 | void e2() __attribute__((weak)); | ||||
16 | void f2() { e2(); } |