comparison gcc/testsuite/g++.dg/abi/empty20.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
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 }