summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/2008-07-31-asm-labels.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-04 17:31:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-04 17:31:19 +0000
commit5b9e9682f186ce772de8beb160fc912b60ae5148 (patch)
treeae6d109677c66d2890e3202d5990de6579bfe4ea /clang/test/CodeGen/2008-07-31-asm-labels.c
parent3e2cbc3161d975b5770979265d794bcf387a5f97 (diff)
downloadbcm5719-llvm-5b9e9682f186ce772de8beb160fc912b60ae5148.tar.gz
bcm5719-llvm-5b9e9682f186ce772de8beb160fc912b60ae5148.zip
Support "asm" renaming of external symbols.
- PR3698. llvm-svn: 66038
Diffstat (limited to 'clang/test/CodeGen/2008-07-31-asm-labels.c')
-rw-r--r--clang/test/CodeGen/2008-07-31-asm-labels.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2008-07-31-asm-labels.c b/clang/test/CodeGen/2008-07-31-asm-labels.c
index 1b5e0ca91da..8aba2d39a72 100644
--- a/clang/test/CodeGen/2008-07-31-asm-labels.c
+++ b/clang/test/CodeGen/2008-07-31-asm-labels.c
@@ -1,6 +1,8 @@
// RUN: clang -emit-llvm -o %t %s &&
// RUN: grep "@pipe()" %t | count 0 &&
// RUN: grep '_thisIsNotAPipe' %t | count 3 &&
+// RUN: grep 'g0' %t | count 0 &&
+// RUN: grep '_renamed' %t | count 2 &&
// RUN: clang -DUSE_DEF -emit-llvm -o %t %s &&
// RUN: grep "@pipe()" %t | count 0 &&
// RUN: grep '_thisIsNotAPipe' %t | count 3
@@ -23,3 +25,9 @@ void pipe(int arg) {
int x = 10;
}
#endif
+
+// PR3698
+extern int g0 asm("_renamed");
+int f2() {
+ return g0;
+}
OpenPOWER on IntegriCloud