51083.cc: Move...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 14 Apr 2012 01:34:00 +0000 (01:34 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 14 Apr 2012 01:34:00 +0000 (01:34 +0000)
2012-04-13  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/26_numerics/cmath/51083.cc: Move...
* testsuite/26_numerics/headers/cmath/51083.cc: ... here.

From-SVN: r186445

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

index a2a821634f1e4f86735390d49e09055593a9b55e..d241a8bef39623e24b96d7cd61d6d2e6d0ac683a 100644 (file)
@@ -1,3 +1,8 @@
+2012-04-13  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * testsuite/26_numerics/cmath/51083.cc: Move...
+       * testsuite/26_numerics/headers/cmath/51083.cc: ... here.
+
 2012-04-13  Laurent Alfonsi  <laurent.alfonsi@st.com>
 
        PR libstdc++/52604
diff --git a/libstdc++-v3/testsuite/26_numerics/cmath/51083.cc b/libstdc++-v3/testsuite/26_numerics/cmath/51083.cc
deleted file mode 100644 (file)
index 8ba9b10..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-// { 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/>.
-
-#include <cmath>
-
-namespace a
-{
-  template<typename> class Mat { };
-
-  template<typename T> struct Mat2 : Mat<T> { };
-
-  template<typename T>
-    int fdim(Mat<T>) { return 1; }
-
-  template<typename T, typename U>
-    int floor(Mat<T>, U) { return 1; }
-  template<typename T, typename U>
-    int floor(T, Mat<U>) { return 1; }
-
-  template<typename T, typename U, typename V>
-    int fma(Mat<T>, U, V) { return 1; }
-  template<typename T, typename U, typename V>
-    int fma(T, Mat<U>, V) { return 1; }
-  template<typename T, typename U, typename V>
-    int fma(T, U, Mat<V>) { return 1; }
-}
-
-int main()
-{
-  int __attribute__((unused)) i;
-
-  using namespace std;
-
-  a::Mat2<double> c;
-  i = fdim(c);
-  i = floor(c, 0.);
-  i = floor(0., c);
-  i = floor(c, 1);
-  i = floor(1, c);
-  i = fma(c, 0., 1.);
-  i = fma(0., c, 1.);
-  i = fma(0., 1., c);
-  i = fma(c, 0., 1);
-  i = fma(0., c, 1);
-  i = fma(0., 1, c);
-}
diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/51083.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/51083.cc
new file mode 100644 (file)
index 0000000..8ba9b10
--- /dev/null
@@ -0,0 +1,62 @@
+// { 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/>.
+
+#include <cmath>
+
+namespace a
+{
+  template<typename> class Mat { };
+
+  template<typename T> struct Mat2 : Mat<T> { };
+
+  template<typename T>
+    int fdim(Mat<T>) { return 1; }
+
+  template<typename T, typename U>
+    int floor(Mat<T>, U) { return 1; }
+  template<typename T, typename U>
+    int floor(T, Mat<U>) { return 1; }
+
+  template<typename T, typename U, typename V>
+    int fma(Mat<T>, U, V) { return 1; }
+  template<typename T, typename U, typename V>
+    int fma(T, Mat<U>, V) { return 1; }
+  template<typename T, typename U, typename V>
+    int fma(T, U, Mat<V>) { return 1; }
+}
+
+int main()
+{
+  int __attribute__((unused)) i;
+
+  using namespace std;
+
+  a::Mat2<double> c;
+  i = fdim(c);
+  i = floor(c, 0.);
+  i = floor(0., c);
+  i = floor(c, 1);
+  i = floor(1, c);
+  i = fma(c, 0., 1.);
+  i = fma(0., c, 1.);
+  i = fma(0., 1., c);
+  i = fma(c, 0., 1);
+  i = fma(0., c, 1);
+  i = fma(0., 1, c);
+}