1 // { dg-options "-Wabi=9 -O0" }
5 void f(A, A) { } // No warning, trailing parms all empty
6 void f(A, A, int) { } // { dg-warning "ABI" }
7 __attribute__ ((always_inline))
8 inline void f(A a, int i) { } // No warning, always inlined
9 __attribute__ ((always_inline))
10 inline void f2(A a, int i) // But the call within the fn gets a warning
11 { // when it's inlined into main
12 f(a,a,i); // { dg-warning "ABI" }
14 inline void f3(A a, int i) // This one is never called
22 f(a,a,42); // { dg-warning "ABI" }