1 ; RUN: opt -passes="ipsccp<func-spec>" -force-specialization -S < %s
2 ; Check that we don't crash when SwitchInst Constant is not ConstantInt.
4 @S = external constant [1 x i8]
8 %tmp = call i32 @bar(ptr @S)
12 define i32 @bar(ptr %arg) {
14 %magicptr = ptrtoint ptr %arg to i64
15 switch i64 %magicptr, label %bb2 [