blob: 3c00c74ff3909e3021d8c4064825824f31e583f7 [file] [log] [blame]
Chris Lattner35e6dc82005-05-20 22:25:44 +00001; RUN: llvm-as < %s | opt -simplify-libcalls -disable-output
2
3%G = constant [3 x sbyte] c"%s\00"
4
5declare int %sprintf(sbyte*, sbyte*, ...)
6
7void %foo(sbyte*%P, int *%X) {
8 call int(sbyte*,sbyte*, ...)* %sprintf(sbyte* %P, sbyte* getelementptr ([3 x sbyte]* %G, int 0, int 0), int* %X)
9 ret void
10}