1 ; RUN: opt < %s -S -ipsccp | FileCheck %s
4 ; IPSCCP should propagate the 0 argument, eliminate the switch, and propagate
7 ; CHECK: define i32 @main() #0 {
10 ; CHECK-NEXT: ret i32 123
12 define i32 @main() noreturn nounwind {
14 %call2 = tail call i32 @wwrite(i64 0) nounwind
18 define internal i32 @wwrite(i64 %i) nounwind readnone {
20 switch i64 %i, label %sw.default [
32 ; CHECK: attributes #0 = { noreturn nounwind }
33 ; CHECK: attributes #1 = { nounwind readnone }