aboutsummaryrefslogtreecommitdiffstats
path: root/test/Verifier/AmbiguousPhi.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Verifier/AmbiguousPhi.ll')
-rw-r--r--test/Verifier/AmbiguousPhi.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Verifier/AmbiguousPhi.ll b/test/Verifier/AmbiguousPhi.ll
new file mode 100644
index 0000000..f64ec3f
--- /dev/null
+++ b/test/Verifier/AmbiguousPhi.ll
@@ -0,0 +1,10 @@
+; RUN: not llvm-as -f %s -o /dev/null
+
+
+
+int "test"(int %i, int %j, bool %c) {
+ br bool %c, label %A, label %A
+A:
+ %a = phi int [%i, %0], [%j, %0] ; Error, different values from same block!
+ ret int %a
+}