blob: 185d70fd41e2d8715a0ce7f32f1af5fbb77fca66 [file] [log] [blame]
Dan Gohman5bb7c7c2009-09-08 22:34:10 +00001; RUN: opt %s -ipsccp -S | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: grep -v {ret i32 17} | grep -v {ret i32 undef} | not grep ret
3
Tanya Lattnerba93e2d2008-03-19 04:14:49 +00004define internal i32 @bar(i32 %A) {
5 %X = add i32 1, 2 ; <i32> [#uses=0]
6 ret i32 %A
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007}
8
Tanya Lattnerba93e2d2008-03-19 04:14:49 +00009define i32 @foo() {
10 %X = call i32 @bar( i32 17 ) ; <i32> [#uses=1]
11 ret i32 %X
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012}
Tanya Lattnerba93e2d2008-03-19 04:14:49 +000013