repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
empty21.C
blob
3b2e3b836b1800acd60df645e45e902ca7191cfd
1
// PR c++/60336
2
// { dg-options "-Wabi=11" }
3
4
#include <stdarg.h>
5
6
struct A { };
7
8
void f(int i, ...)
9
{
10
va_list ap;
11
va_start (ap, i);
12
if (i >= 1)
13
va_arg (ap, A);
14
if (i >= 2)
15
va_arg (ap, int);
16
}
17
18
int main()
19
{
20
f(0);
21
f(1, A()); // { dg-warning "ABI" "" { target { { i?86-*-* x86_64-*-* } && { ! { ia32 } } } } }
22
f(2, A(), 42); // { dg-warning "ABI" "" { target { { i?86-*-* x86_64-*-* } && { ! { ia32 } } } } }
23
}