Partially implement -Wdeprecated-declarations.
[cparser] / parsetest / cp_error026.c
1 /* fmt and all further parameters must be passed on the stack even for regparams */
2 #include <stdio.h>
3 #include <stdarg.h>
4
5 static void f(const char* fmt, ...)
6 {
7   va_list va;
8   va_start(va, fmt);
9   vprintf(fmt, va);
10   va_end(va);
11 }
12
13
14 int main(void)
15 {
16   f("Hallo, %s!\n", "Welt");
17   return 0;
18 }