comparison gcc/testsuite/g++.dg/abi/invisiref2a.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++/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" } }
5
6 struct S { // { dg-message "" }
7 S(S&&) = default;
8 int i;
9 };
10
11 S foo(S s) // { dg-warning "calling convention" }
12 {
13 return s;
14 }