types_std_c++0x_neg.cc: New.
authorBenjamin Kosnik <bkoz@redhat.com>
Tue, 8 May 2007 10:44:37 +0000 (10:44 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 8 May 2007 10:44:37 +0000 (10:44 +0000)
2007-05-08  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: New.

From-SVN: r124540

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc [new file with mode: 0644]

index d5bb6af..cc9845d 100644 (file)
@@ -1,3 +1,7 @@
+2007-05-08  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: New.
+
 2007-05-08  Jason Merrill  <jason@redhat.com>
 
        * libsupc++/cxxabi-internal.h: Remove, to be replaced by...
diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc
new file mode 100644 (file)
index 0000000..afa75f7
--- /dev/null
@@ -0,0 +1,74 @@
+// { dg-options "-std=gnu++0x" }
+// { dg-do compile }
+
+// Copyright (C) 2007 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 2, 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 COPYING.  If not, write to the Free
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+// USA.
+
+#include <cmath>
+
+namespace gnu
+{
+  // C++0x changes from TR1.
+  using std::assoc_laguerre;
+  using std::assoc_legendre;
+  using std::beta; 
+  using std::comp_ellint_1;
+  using std::comp_ellint_2;
+  using std::comp_ellint_3;
+  using std::conf_hyperg;
+  using std::cyl_bessel_i;
+  using std::cyl_bessel_j;
+  using std::cyl_bessel_k;
+  using std::cyl_neumann;
+  using std::ellint_1;
+  using std::ellint_2;
+  using std::ellint_3;
+  using std::expint;  
+  using std::hermite;
+  using std::hyperg;
+  using std::laguerre;
+  using std::legendre;
+  using std::riemann_zeta;
+  using std::sph_bessel;
+  using std::sph_legendre;
+  using std::sph_neumann;
+}
+
+// { dg-error "has not been declared" "" { xfail *-*-* } 27 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 28 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 29 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 30 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 31 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 32 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 33 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 34 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 35 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 36 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 37 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 38 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 39 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 40 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 41 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 42 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 43 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 44 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 45 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 46 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 47 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 48 } 
+// { dg-error "has not been declared" "" { xfail *-*-* } 49 }