projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
g++.dg/cpp1y/vla11.C...
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
empty21.C
1
// { dg-options "-Wabi=9" }
2
3
#include <stdarg.h>
4
5
struct A { };
6
7
void f(int i, ...)
8
{
9
va_list ap;
10
va_start (ap, i);
11
if (i >= 1)
12
va_arg (ap, A); // { dg-warning "ABI" }
13
if (i >= 2)
14
va_arg (ap, int);
15
}
16
17
int main()
18
{
19
f(0);
20
f(2, A(), 42); // { dg-warning "ABI" }
21
}