summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/pr96140.d
blob: d25bb5d3360a361097721fb20b5dc1926c3d7a5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96140
// { dg-do compile }
module pr94140;

import core.stdc.stdarg;

void test_va_arg(ref int a, ...)
{
    return va_arg!int(_argptr, a);
}

void test_va_start(ref va_list a, ...)
{
    return va_start(a, a);
}