summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit6041fee872fd8c2aa065245385863a89edb52f4b (patch)
tree0330a4a79b47e2ed0eaf26251af20880025e403e /llvm
parent3e810058a7d47d527af8e062f125ad2729baf68d (diff)
downloadbcm5719-llvm-6041fee872fd8c2aa065245385863a89edb52f4b.tar.gz
bcm5719-llvm-6041fee872fd8c2aa065245385863a89edb52f4b.zip
Testcase for PR340: Verifier misses malformed switch instruction
This testcase was reduced by John, thanks! llvm-svn: 13617
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Regression/Verifier/2004-05-21-SwitchConstantMismatch.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Regression/Verifier/2004-05-21-SwitchConstantMismatch.ll b/llvm/test/Regression/Verifier/2004-05-21-SwitchConstantMismatch.ll
new file mode 100644
index 00000000000..b5fa4895bb8
--- /dev/null
+++ b/llvm/test/Regression/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
+}
+
OpenPOWER on IntegriCloud