PR c++/60336
[official-gcc.git] / gcc / testsuite / g++.dg / abi / empty20.C
blob5022033f669cd1e5262cc595e67043147e7650c1
1 // PR c++/60336
2 // { dg-options "-Wabi=11 -O0" }
4 struct A { };
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
11   f(a,a,i); // { dg-warning "ABI" "" { target { { i?86-*-* x86_64-*-* } && { ! { ia32 } } } } }
13 int main()
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);