summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/switch-truncate-crash.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstCombine/switch-truncate-crash.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/switch-truncate-crash.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/switch-truncate-crash.ll b/llvm/test/Transforms/InstCombine/switch-truncate-crash.ll
new file mode 100644
index 00000000000..cc3c1ff28ed
--- /dev/null
+++ b/llvm/test/Transforms/InstCombine/switch-truncate-crash.ll
@@ -0,0 +1,7 @@
+; RUN: opt -instcombine < %s
+
+define void @test() {
+ switch i32 0, label %out [i32 0, label %out]
+out:
+ ret void
+}
OpenPOWER on IntegriCloud