blob: d8eb3e8b652c89a272fceec8cf7d7751627f0f3e [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -constprop -S | \
Dan Gohman8c89a502007-08-15 13:36:28 +00002; RUN: grep -F {ret i32* null} | count 2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00004define i32* @test1() {
5 %X = inttoptr i64 0 to i32* ; <i32*> [#uses=1]
6 ret i32* %X
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007}
8
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00009define i32* @test2() {
10 ret i32* null
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011}
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000012