Debian Codegraph @

gcc/testsuite/gdc.dg/pr96154a.d

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