2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -o %t %s
|
2013-07-04 23:22:16 +08:00
|
|
|
// RUN: not grep "@pipe()" %t
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '_thisIsNotAPipe' %t | count 3
|
2018-08-03 22:36:44 +08:00
|
|
|
// RUN: not grep '@g0' %t
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '_renamed' %t | count 2
|
2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s
|
2013-07-04 23:22:16 +08:00
|
|
|
// RUN: not grep "@pipe()" %t
|
2008-08-06 08:03:29 +08:00
|
|
|
// RUN: grep '_thisIsNotAPipe' %t | count 3
|
|
|
|
// <rdr://6116729>
|
|
|
|
|
|
|
|
void pipe() asm("_thisIsNotAPipe");
|
|
|
|
|
2022-02-13 21:02:46 +08:00
|
|
|
void f0(void) {
|
2008-08-06 08:03:29 +08:00
|
|
|
pipe();
|
|
|
|
}
|
|
|
|
|
|
|
|
void pipe(int);
|
|
|
|
|
2022-02-13 21:02:46 +08:00
|
|
|
void f1(void) {
|
2008-08-06 08:03:29 +08:00
|
|
|
pipe(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef USE_DEF
|
|
|
|
void pipe(int arg) {
|
|
|
|
int x = 10;
|
|
|
|
}
|
|
|
|
#endif
|
2009-03-05 01:31:19 +08:00
|
|
|
|
|
|
|
// PR3698
|
|
|
|
extern int g0 asm("_renamed");
|
2022-02-13 21:02:46 +08:00
|
|
|
int f2(void) {
|
2009-03-05 01:31:19 +08:00
|
|
|
return g0;
|
|
|
|
}
|