| 1 |
// PR c++/80178 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-options "-fabi-version=11 -Wabi -fdump-tree-gimple" } |
| 4 |
// { dg-final { scan-tree-dump "foo .D" "gimple" } } |
| 5 |
|
| 6 |
struct A { |
| 7 |
A(); |
| 8 |
A &operator=(A &&o); |
| 9 |
void *p; |
| 10 |
}; |
| 11 |
void notdefined(A); |
| 12 |
|
| 13 |
void foo(A) { } // { dg-warning "calling convention" } |
| 14 |
|
| 15 |
A baz() // { dg-warning "calling convention" } |
| 16 |
{ |
| 17 |
return {}; |
| 18 |
} |
| 19 |
|
| 20 |
void bar() { |
| 21 |
foo({}); // { dg-warning "calling convention" } |
| 22 |
notdefined({}); // { dg-warning "calling convention" } |
| 23 |
baz(); // { dg-warning "calling convention" } |
| 24 |
} |