blob: 5b7ec094d7f5703c90a3e7d948fa24703e07909f [file] [log] [blame]
Dan Gohman1b4c27772009-09-08 16:50:01 +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