summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/Verifier/AmbiguousPhi.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Regression/Verifier/AmbiguousPhi.ll')
-rw-r--r--llvm/test/Regression/Verifier/AmbiguousPhi.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Regression/Verifier/AmbiguousPhi.ll b/llvm/test/Regression/Verifier/AmbiguousPhi.ll
new file mode 100644
index 00000000000..7da71b05162
--- /dev/null
+++ b/llvm/test/Regression/Verifier/AmbiguousPhi.ll
@@ -0,0 +1,8 @@
+
+
+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
+}
OpenPOWER on IntegriCloud