blob: 8816579a42ffc00cf122da3b05ac56f6bc63e854 [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -simplify-libcalls -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner003eae52008-03-10 07:21:50 +00003@G = constant [3 x i8] c"%s\00" ; <[3 x i8]*> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner003eae52008-03-10 07:21:50 +00005declare i32 @sprintf(i8*, i8*, ...)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006
Tanya Lattner003eae52008-03-10 07:21:50 +00007define void @foo(i8* %P, i32* %X) {
8 call i32 (i8*, i8*, ...)* @sprintf( i8* %P, i8* getelementptr ([3 x i8]* @G, i32 0, i32 0), i32* %X ) ; <i32>:1 [#uses=0]
9 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}
Tanya Lattner003eae52008-03-10 07:21:50 +000011