Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
[oota-llvm.git] / test / Transforms / ConstProp / float-to-ptr-cast.ll
1 ; RUN: opt < %s -constprop -S | \
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