summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/tr1
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2011-02-12 18:30:50 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2011-02-12 18:30:50 +0000
commit20b84d78de9198b3da25b6b8364cd231217b9ca6 (patch)
tree0d65c0fc3d14361ba33a737f05ed54960acede9f /libstdc++-v3/testsuite/tr1
parentffad481e5919b9e6300abc564b3abb8d2cbbd00c (diff)
downloadgcc-20b84d78de9198b3da25b6b8364cd231217b9ca6.tar.gz
2011-02-12 Paolo Carlini <paolo.carlini@oracle.com>
* include/tr1/cmath (fabs): Define. * include/tr1/complex (acos, asin, atan): Avoid duplicate definitions in C++0x mode. 2011-02-12 Jonathan Wakely <jwakely.gcc@gmail.com> * testsuite/tr1/headers/c++200x/complex.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170083 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/tr1')
-rw-r--r--libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc26
1 files changed, 26 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
new file mode 100644
index 00000000000..1df97013aca
--- /dev/null
+++ b/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc
@@ -0,0 +1,26 @@
+// { dg-do compile }
+// { dg-options "-std=gnu++0x" }
+
+// Copyright (C) 2011 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/>.
+
+// check for duplicates of complex overloads of acos, asin, atan and fabs
+
+#include <complex>
+#include <tr1/cmath>
+#include <tr1/complex>
+