summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/unnamed-alias.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-17 17:53:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-17 17:53:31 +0000
commit54fc298bbc2e0a99800e86ec9464d92a7b8f6337 (patch)
tree91b8b95cbf2797151952c7026619e723e6f6b9c1 /llvm/test/Assembler/unnamed-alias.ll
parent3df5dd4de79daab1da83119430f8396af783fd1f (diff)
downloadbcm5719-llvm-54fc298bbc2e0a99800e86ec9464d92a7b8f6337.tar.gz
bcm5719-llvm-54fc298bbc2e0a99800e86ec9464d92a7b8f6337.zip
Allow aliases to be unnamed.
If globals can be unnamed, there is no reason for aliases to be different. The restriction was there since the original implementation in r36435. I can only guess it was there because of the old bison parser for the old alias syntax. llvm-svn: 239921
Diffstat (limited to 'llvm/test/Assembler/unnamed-alias.ll')
-rw-r--r--llvm/test/Assembler/unnamed-alias.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Assembler/unnamed-alias.ll b/llvm/test/Assembler/unnamed-alias.ll
new file mode 100644
index 00000000000..8ae1c45d312
--- /dev/null
+++ b/llvm/test/Assembler/unnamed-alias.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+
+@0 = private constant i32 0
+; CHECK: @0 = private constant i32 0
+@1 = private constant i32 1
+; CHECK: @1 = private constant i32 1
+
+@2 = private alias i32* @0
+; CHECK: @2 = private alias i32* @0
+@3 = private alias i32* @1
+; CHECK: @3 = private alias i32* @1
OpenPOWER on IntegriCloud