diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/variadic98.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/variadic98.C | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic98.C b/gcc/testsuite/g++.dg/cpp0x/variadic98.C index c463cac17e7..6f1d9b40676 100644 --- a/gcc/testsuite/g++.dg/cpp0x/variadic98.C +++ b/gcc/testsuite/g++.dg/cpp0x/variadic98.C @@ -1,5 +1,6 @@ // PR c++/42358 // { dg-do assemble { target c++11 } } +// { dg-additional-options "-Wno-return-type" } typedef __PTRDIFF_TYPE__ ptrdiff_t; typedef __SIZE_TYPE__ size_t; @@ -177,6 +178,7 @@ namespace std __attribute__ ((__visibility__ ("default"))) { }; template<typename _Tp> struct less : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const { + return true; } }; template<typename _Pair> struct _Select1st : public unary_function<_Pair, typename _Pair::first_type> { |