[FunctionAttrs] Fix an iterator wraparound bug
[oota-llvm.git] / test / Transforms / ConstProp / float-to-ptr-cast.ll
1 ; RUN: opt < %s -constprop -S | FileCheck %s
2
3 define i32* @test1() {
4         %X = inttoptr i64 0 to i32*             ; <i32*> [#uses=1]
5         ret i32* %X
6 }
7
8 ; CHECK:  ret i32* null
9
10 define i32* @test2() {
11         ret i32* null
12 }
13
14 ; CHECK:  ret i32* null
15