aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/switch-truncate-crash.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/switch-truncate-crash.ll')
-rw-r--r--test/Transforms/InstCombine/switch-truncate-crash.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/switch-truncate-crash.ll b/test/Transforms/InstCombine/switch-truncate-crash.ll
new file mode 100644
index 0000000..cc3c1ff
--- /dev/null
+++ b/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
+}