summaryrefslogtreecommitdiff
path: root/test/Assembler/alias-to-alias2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/alias-to-alias2.ll')
-rw-r--r--test/Assembler/alias-to-alias2.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/alias-to-alias2.ll b/test/Assembler/alias-to-alias2.ll
new file mode 100644
index 0000000000..a8a0196f43
--- /dev/null
+++ b/test/Assembler/alias-to-alias2.ll
@@ -0,0 +1,7 @@
+; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
+; CHECK: error: Alias is pointed by alias b1
+
+@g = global i32 42
+
+@b1 = alias i32* @c1
+@c1 = alias i32* @g