aboutsummaryrefslogtreecommitdiffstats
path: root/test/Verifier/AmbiguousPhi.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-06-08 17:33:16 +0000
committerChris Lattner <sabre@nondot.org>2002-06-08 17:33:16 +0000
commit23e07e73a8d05902278d506eba34b321e2302bb6 (patch)
treef307512a8ee5b3c2f2e350d1ea626edae496fc88 /test/Verifier/AmbiguousPhi.ll
parentdb241dcf514ba4fb61c60d41b47e2dc601a6ac36 (diff)
downloadexternal_llvm-23e07e73a8d05902278d506eba34b321e2302bb6.zip
external_llvm-23e07e73a8d05902278d506eba34b321e2302bb6.tar.gz
external_llvm-23e07e73a8d05902278d506eba34b321e2302bb6.tar.bz2
New testcases for verifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier/AmbiguousPhi.ll')
-rw-r--r--test/Verifier/AmbiguousPhi.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Verifier/AmbiguousPhi.ll b/test/Verifier/AmbiguousPhi.ll
new file mode 100644
index 0000000..7da71b0
--- /dev/null
+++ b/test/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
+}