blob: 8ab76d997b1a80eebbb92bb1a58c6f40cd7d3cff [file] [log] [blame]
Dan Gohman5bb7c7c2009-09-08 22:34:10 +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