New testcase for PR1744
[oota-llvm.git] / test / CFrontend / 2002-07-30-VarArgsCallFailure.c
index dfe9d63c1b24483584d32b207ee93cfb1e4d7722..b37a462220b28e05e263eb1f9d42915db0b8e137 100644 (file)
@@ -1,6 +1,8 @@
-#include <stdio.h>
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
 int tcount;
+void test(char *, const char*, int);
 void foo() {
-       char Buf[10];
-       sprintf(Buf, "n%%%d", tcount++);
+  char Buf[10];
+  test(Buf, "n%%%d", tcount++);
 }