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