blob: 8c0ca658c55e042b2f54db7190efe8286d204ede (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// { dg-do compile }
import core.stdc.stdarg;
void
error (int a)
{
va_list vp;
va_start (vp, a); // { dg-error "used in function with fixed arguments" }
}
void
warn (int a, int b, ...)
{
va_list vp;
va_start (vp, a); // { dg-warning "second parameter" }
va_end (vp);
}
|