]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libstdc++-v3/testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc
Imported gcc-4.4.3
[msp430-gcc.git] / libstdc++-v3 / testsuite / 26_numerics / headers / cmath / types_std_c++0x_neg.cc
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..27fd15c
--- /dev/null
@@ -0,0 +1,73 @@
+// { dg-options "-std=gnu++0x" }
+// { dg-do compile }
+
+// Copyright (C) 2007, 2009 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/>.
+
+#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" "" { target *-*-* } 26 } 
+// { dg-error "has not been declared" "" { target *-*-* } 27 } 
+// { dg-error "has not been declared" "" { target *-*-* } 28 } 
+// { dg-error "has not been declared" "" { target *-*-* } 29 } 
+// { dg-error "has not been declared" "" { target *-*-* } 30 } 
+// { dg-error "has not been declared" "" { target *-*-* } 31 } 
+// { dg-error "has not been declared" "" { target *-*-* } 32 } 
+// { dg-error "has not been declared" "" { target *-*-* } 33 } 
+// { dg-error "has not been declared" "" { target *-*-* } 34 } 
+// { dg-error "has not been declared" "" { target *-*-* } 35 } 
+// { dg-error "has not been declared" "" { target *-*-* } 36 } 
+// { dg-error "has not been declared" "" { target *-*-* } 37 } 
+// { dg-error "has not been declared" "" { target *-*-* } 38 } 
+// { dg-error "has not been declared" "" { target *-*-* } 39 } 
+// { dg-error "has not been declared" "" { target *-*-* } 40 } 
+// { dg-error "has not been declared" "" { target *-*-* } 41 } 
+// { dg-error "has not been declared" "" { target *-*-* } 42 } 
+// { dg-error "has not been declared" "" { target *-*-* } 43 } 
+// { dg-error "has not been declared" "" { target *-*-* } 44 } 
+// { dg-error "has not been declared" "" { target *-*-* } 45 } 
+// { dg-error "has not been declared" "" { target *-*-* } 46 } 
+// { dg-error "has not been declared" "" { target *-*-* } 47 } 
+// { dg-error "has not been declared" "" { target *-*-* } 48 }