diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/abi/abi-tag14.C')
-rw-r--r-- | gcc/testsuite/g++.dg/abi/abi-tag14.C | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/g++.dg/abi/abi-tag14.C b/gcc/testsuite/g++.dg/abi/abi-tag14.C index a66e6552cba..3017f492cda 100644 --- a/gcc/testsuite/g++.dg/abi/abi-tag14.C +++ b/gcc/testsuite/g++.dg/abi/abi-tag14.C @@ -8,20 +8,20 @@ inline namespace __cxx11 __attribute ((abi_tag ("cxx11"))) { A a; // { dg-warning "\"cxx11\"" } // { dg-final { scan-assembler "_Z1fB5cxx11v" } } -A f() {} // { dg-warning "\"cxx11\"" } +A f() { return a; } // { dg-warning "\"cxx11\"" } namespace { A a2; - A f2() {} + A f2() { return a2; } struct B: A {}; } // { dg-final { scan-assembler "_Z1fPN7__cxx111AE" } } -A f(A*) {} +A f(A*) { return a; } // { dg-final { scan-assembler "_Z1gIN7__cxx111AEET_v" } } template <class T> T g() { } -template <> A g<A>() { } +template <> A g<A>() { return a; } // { dg-final { scan-assembler "_Z1vIN7__cxx111AEE" { target c++14 } } } #if __cplusplus >= 201402L |