Test that prune-eh doesn't make deductions based
[oota-llvm.git] / test / Transforms / ConstProp / float-to-ptr-cast.ll
1 ; RUN: llvm-as < %s | opt -constprop | llvm-dis | \
2 ; RUN:    grep -F {ret i32* null} | count 2
3
4 define i32* @test1() {
5         %X = inttoptr i64 0 to i32*             ; <i32*> [#uses=1]
6         ret i32* %X
7 }
8
9 define i32* @test2() {
10         ret i32* null
11 }
12