diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-17 11:37:12 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-17 11:37:12 +0000 |
commit | 10bc620ff573f2d1059378d0684bdf985028fe6d (patch) | |
tree | 2686bd58e4311af8f17902454d2c7509c057d67c /libstdc++-v3/testsuite/tr1 | |
parent | bd356bb6d247b18723734d4d1d0b32191cfb1a9a (diff) | |
download | gcc-10bc620ff573f2d1059378d0684bdf985028fe6d.tar.gz |
2016-04-17 Basile Starynkevitch <basile@starynkevitch.net>
{{merging with even more of GCC 6, using subversion 1.9
svn merge -r233051:233720 ^/trunk
}}
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@235079 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/tr1')
-rw-r--r-- | libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/tr1/headers/c++200x/math.cc | 25 |
2 files changed, 27 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc b/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc index 4c442bb32eb..dbf01f5cacc 100644 --- a/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc +++ b/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc @@ -21,6 +21,8 @@ // check for duplicates of complex overloads of acos, asin, atan and fabs #include <complex> +using std::fabs; #include <tr1/cmath> #include <tr1/complex> +auto c = std::tr1::fabs(std::complex<double>{}); diff --git a/libstdc++-v3/testsuite/tr1/headers/c++200x/math.cc b/libstdc++-v3/testsuite/tr1/headers/c++200x/math.cc new file mode 100644 index 00000000000..29b89a4b87f --- /dev/null +++ b/libstdc++-v3/testsuite/tr1/headers/c++200x/math.cc @@ -0,0 +1,25 @@ +// { dg-do compile } +// { dg-options "-std=gnu++11" } + +// Copyright (C) 2016 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING3. If not see +// <http://www.gnu.org/licenses/>. + +// PR libstdc++/69893 +// check for duplicate overloads of acosh, asinh, etc. + +#include <math.h> +#include <tr1/cmath> |