summaryrefslogtreecommitdiff
path: root/test/Assembler/alias-type.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/alias-type.ll')
-rw-r--r--test/Assembler/alias-type.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Assembler/alias-type.ll b/test/Assembler/alias-type.ll
new file mode 100644
index 0000000000..ead3e95243
--- /dev/null
+++ b/test/Assembler/alias-type.ll
@@ -0,0 +1,6 @@
+; RUN: not llvm-as %s 2>&1 | FileCheck %s
+
+@foo = global i32 42
+@bar = alias i32 @foo
+
+CHECK: error: An alias must have pointer type