blob: 130ad6ba46cce7ee31d6488a51db6baf5f08714c [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: grep "@pipe()" %t | count 0
3// RUN: grep '_thisIsNotAPipe' %t | count 3
4// RUN: grep 'g0' %t | count 0
5// RUN: grep '_renamed' %t | count 2
Daniel Dunbara5728872009-12-15 20:14:24 +00006// RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00007// RUN: grep "@pipe()" %t | count 0
Daniel Dunbara735ad82008-08-06 00:03:29 +00008// RUN: grep '_thisIsNotAPipe' %t | count 3
9// <rdr://6116729>
10
11void pipe() asm("_thisIsNotAPipe");
12
13void f0() {
14 pipe();
15}
16
17void pipe(int);
18
19void f1() {
20 pipe(1);
21}
22
23#ifdef USE_DEF
24void pipe(int arg) {
25 int x = 10;
26}
27#endif
Daniel Dunbar3f75c432009-03-04 17:31:19 +000028
29// PR3698
30extern int g0 asm("_renamed");
31int f2() {
32 return g0;
33}