summaryrefslogtreecommitdiffstats
path: root/test/Verifier/aliasing-chain.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Verifier/aliasing-chain.ll')
-rw-r--r--test/Verifier/aliasing-chain.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Verifier/aliasing-chain.ll b/test/Verifier/aliasing-chain.ll
new file mode 100644
index 0000000..53b929b
--- /dev/null
+++ b/test/Verifier/aliasing-chain.ll
@@ -0,0 +1,6 @@
+; RUN: not llvm-as -f %s -o /dev/null |& grep {Aliasing chain should end with function or global variable}
+
+; Test that alising chain does not create a cycle
+
+@b1 = alias i32* @c1
+@c1 = alias i32* @b1