summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/vfprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/vfprintf.c')
-rw-r--r--test/CodeGen/vfprintf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/vfprintf.c b/test/CodeGen/vfprintf.c
new file mode 100644
index 0000000..89261c7
--- /dev/null
+++ b/test/CodeGen/vfprintf.c
@@ -0,0 +1,8 @@
+// RUN: clang-cc -emit-llvm-only %s
+
+typedef struct _IO_FILE FILE;
+int vfprintf(FILE*restrict,const char*restrict, __builtin_va_list);
+void foo(__builtin_va_list ap) {
+ vfprintf(0, " ", ap);
+}
+
OpenPOWER on IntegriCloud