Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
standalone
issue_12706
test.c
pretty
plain
permalink
blame
history
•
11 lines
•
204 B
1
#include <stdarg.h>
2
3
void testFnPtr(int n, ...) {
4
va_list ap;
5
va_start(ap, n);
6
7
void (*fnPtr)(int) = va_arg(ap, void (*)(int));
8
int arg = va_arg(ap, int);
9
fnPtr(arg);
10
va_end(ap);
11
}