From 6d09becf08551980d922cc1d8a015ea3eda567c9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 21 May 2004 16:47:02 +0000 Subject: [PATCH 1/1] 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 --- test/Verifier/2004-05-21-SwitchConstantMismatch.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/Verifier/2004-05-21-SwitchConstantMismatch.ll diff --git a/test/Verifier/2004-05-21-SwitchConstantMismatch.ll b/test/Verifier/2004-05-21-SwitchConstantMismatch.ll new file mode 100644 index 00000000000..b5fa4895bb8 --- /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 +} + -- 2.34.1