blob: 1b5e0ca91da1c4a11eb8f4d51067dd49c6680a65 [file] [log] [blame]
Daniel Dunbara735ad82008-08-06 00:03:29 +00001// 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
9void pipe() asm("_thisIsNotAPipe");
10
11void f0() {
12 pipe();
13}
14
15void pipe(int);
16
17void f1() {
18 pipe(1);
19}
20
21#ifdef USE_DEF
22void pipe(int arg) {
23 int x = 10;
24}
25#endif