aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/invisiref2a.C
blob: 127ee0ae7639f2f06c2aa5fe421354d989a6432e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/86094
// { dg-do compile { target c++11 } }
// { dg-additional-options "-fabi-version=12 -Wabi -fdump-tree-gimple" }
// { dg-final { scan-tree-dump "struct S &" "gimple" } }

struct S {			// { dg-message "" }
  S(S&&) = default;
  int i;
};

S foo(S s)			// { dg-warning "calling convention" }
{
  return s;
}