blob: 7f0772e53d930822a330414d959f4eec86c1cd0a [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +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