zig/test/standalone/issue_12706/test.c
2022-09-01 13:16:33 +03:00

11 lines
204 B
C

#include <stdarg.h>
void testFnPtr(int n, ...) {
va_list ap;
va_start(ap, n);
void (*fnPtr)(int) = va_arg(ap, void (*)(int));
int arg = va_arg(ap, int);
fnPtr(arg);
va_end(ap);
}