Debian Codegraph @

gcc/testsuite/g++.dg/abi/empty20.C

raw
1 // PR c++/60336
2 // { dg-options "-Wabi=11 -O0" }
3
4 struct A { };
5
6 void f(A, A) { } // No warning, trailing parms all empty
7 void f(A, A, int) { } // { dg-warning "ABI" "" { target { { i?86-*-* x86_64-*-* } && { ! { ia32 } } } } }
8 __attribute__ ((always_inline))
9 inline void f(A a, int i) // No warning, always inlined
10 {
11 f(a,a,i); // { dg-warning "ABI" "" { target { { i?86-*-* x86_64-*-* } && { ! { ia32 } } } } }
12 }
13 int main()
14 {
15 A a;
16 f(a,a);
17 f(a,a,42); // { dg-warning "ABI" "" { target { { i?86-*-* x86_64-*-* } && { ! { ia32 } } } } }
18 f(a,42);
19 }