aboutsummaryrefslogtreecommitdiff
path: root/test/varargs+aarch64.c
blob: 0b5a73dd98b4ae322698ddc6583d5e189094c9ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
void f(int n, ...) {
	__builtin_va_list ap;

	__builtin_va_start(ap, n);
	while (n) {
		__builtin_va_arg(ap, int);
		__builtin_va_arg(ap, float);
		__builtin_va_arg(ap, char *);
		--n;
	}
	__builtin_va_end(ap);
}