blob: 5b4fde870d5db07f212ccbee7012504188b16f43 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | 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}