Daniel Dunbar | a735ad8 | 2008-08-06 00:03:29 +0000 | [diff] [blame] | 1 | // RUN: clang -emit-llvm -o %t %s && |
| 2 | // RUN: grep "@pipe()" %t | count 0 && |
| 3 | // RUN: grep '_thisIsNotAPipe' %t | count 3 && |
| 4 | // RUN: clang -DUSE_DEF -emit-llvm -o %t %s && |
| 5 | // RUN: grep "@pipe()" %t | count 0 && |
| 6 | // RUN: grep '_thisIsNotAPipe' %t | count 3 |
| 7 | // <rdr://6116729> |
| 8 | |
| 9 | void pipe() asm("_thisIsNotAPipe"); |
| 10 | |
| 11 | void f0() { |
| 12 | pipe(); |
| 13 | } |
| 14 | |
| 15 | void pipe(int); |
| 16 | |
| 17 | void f1() { |
| 18 | pipe(1); |
| 19 | } |
| 20 | |
| 21 | #ifdef USE_DEF |
| 22 | void pipe(int arg) { |
| 23 | int x = 10; |
| 24 | } |
| 25 | #endif |