summaryrefslogtreecommitdiff
path: root/test/Other
diff options
context:
space:
mode:
authorJan Sjödin <jan_sjodin@yahoo.com>2012-09-18 18:47:58 +0000
committerJan Sjödin <jan_sjodin@yahoo.com>2012-09-18 18:47:58 +0000
commit18505b352212a5e9eac07a8555ded232b5ece894 (patch)
treee5ef7d77a1e7703b625d5de82d50c26e4944cdc7 /test/Other
parent3b62b01f9a6fbecbc8aa22750d797459f8ae6417 (diff)
downloadllvm-18505b352212a5e9eac07a8555ded232b5ece894.tar.gz
llvm-18505b352212a5e9eac07a8555ded232b5ece894.tar.bz2
llvm-18505b352212a5e9eac07a8555ded232b5ece894.tar.xz
Add hidden flag to exclude aliases from output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other')
-rw-r--r--test/Other/llvm-nm-without-aliases.ll25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/Other/llvm-nm-without-aliases.ll b/test/Other/llvm-nm-without-aliases.ll
new file mode 100644
index 0000000000..9d9408c13b
--- /dev/null
+++ b/test/Other/llvm-nm-without-aliases.ll
@@ -0,0 +1,25 @@
+; RUN: llvm-as < %s > %t
+; RUN: llvm-nm -without-aliases < %t | FileCheck %s
+; RUN: llvm-nm < %t | FileCheck --check-prefix=WITH %s
+
+; CHECK-NOT: T a0bar
+; CHECK-NOT: T a0foo
+; CHECK: T bar
+; CHECK: T foo
+
+; WITH: T a0bar
+; WITH: T a0foo
+; WITH: T bar
+; WITH: T foo
+
+@a0foo = alias void ()* @foo
+
+define void @foo() {
+ ret void
+}
+
+@a0bar = alias void ()* @bar
+
+define void @bar() {
+ ret void
+}