diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-05-21 16:47:02 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-05-21 16:47:02 +0000 |
| commit | 6041fee872fd8c2aa065245385863a89edb52f4b (patch) | |
| tree | 0330a4a79b47e2ed0eaf26251af20880025e403e /llvm | |
| parent | 3e810058a7d47d527af8e062f125ad2729baf68d (diff) | |
| download | bcm5719-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.ll | 11 |
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 +} + |

