summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/alias-addrspace.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Assembler/alias-addrspace.ll')
-rw-r--r--llvm/test/Assembler/alias-addrspace.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Assembler/alias-addrspace.ll b/llvm/test/Assembler/alias-addrspace.ll
new file mode 100644
index 00000000000..6d378e45fa2
--- /dev/null
+++ b/llvm/test/Assembler/alias-addrspace.ll
@@ -0,0 +1,6 @@
+; RUN: not llvm-as %s 2>&1 | FileCheck %s
+
+@foo = global i32 42
+@bar = alias internal addrspace(1) i32* @foo
+
+CHECK: error: A type is required if addrspace is given
OpenPOWER on IntegriCloud