PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / abi / invisiref2a.C
blob127ee0ae7639f2f06c2aa5fe421354d989a6432e
1 // PR c++/86094
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options "-fabi-version=12 -Wabi -fdump-tree-gimple" }
4 // { dg-final { scan-tree-dump "struct S &" "gimple" } }
6 struct S {                      // { dg-message "" }
7   S(S&&) = default;
8   int i;
9 };
11 S foo(S s)                      // { dg-warning "calling convention" }
13   return s;