[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / CodeGen / 2008-07-31-asm-labels.c
blob130ad6ba46cce7ee31d6488a51db6baf5f08714c
1 // RUN: %clang_cc1 -emit-llvm -o %t %s
2 // 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
6 // RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s
7 // RUN: grep "@pipe()" %t | count 0
8 // RUN: grep '_thisIsNotAPipe' %t | count 3
9 // <rdr://6116729>
11 void pipe() asm("_thisIsNotAPipe");
13 void f0() {
14 pipe();
17 void pipe(int);
19 void f1() {
20 pipe(1);
23 #ifdef USE_DEF
24 void pipe(int arg) {
25 int x = 10;
27 #endif
29 // PR3698
30 extern int g0 asm("_renamed");
31 int f2() {
32 return g0;