summaryrefslogtreecommitdiffstats
path: root/test/Verifier
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-21 16:47:02 +0000
committerChris Lattner <sabre@nondot.org>2004-05-21 16:47:02 +0000
commit6d09becf08551980d922cc1d8a015ea3eda567c9 (patch)
treed8679f375bdf22b8c4e90b9b7ae52e33ea14e3d8 /test/Verifier
parentc2fb006ecb2846b04542da589fe61196bc6b03b3 (diff)
downloadexternal_llvm-6d09becf08551980d922cc1d8a015ea3eda567c9.zip
external_llvm-6d09becf08551980d922cc1d8a015ea3eda567c9.tar.gz
external_llvm-6d09becf08551980d922cc1d8a015ea3eda567c9.tar.bz2
Testcase for PR340: Verifier misses malformed switch instruction
This testcase was reduced by John, thanks! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
-rw-r--r--test/Verifier/2004-05-21-SwitchConstantMismatch.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Verifier/2004-05-21-SwitchConstantMismatch.ll b/test/Verifier/2004-05-21-SwitchConstantMismatch.ll
new file mode 100644
index 0000000..b5fa489
--- /dev/null
+++ b/test/Verifier/2004-05-21-SwitchConstantMismatch.ll
@@ -0,0 +1,11 @@
+
+
+int %main() {
+start1:
+ switch uint 0, label %brt0 [int 3, label %brt1 ]
+brt0:
+ ret int 0
+brt1:
+ ret int 0
+}
+