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