typedefs.cc: Rename to alias_decl.cc.
authorPaolo Carlini <paolo@gcc.gnu.org>
Tue, 14 Oct 2014 08:45:38 +0000 (08:45 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 14 Oct 2014 08:45:38 +0000 (08:45 +0000)
2014-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/20_util/add_lvalue_reference/requirements/typedefs.cc:
Rename to alias_decl.cc.
* testsuite/20_util/add_rvalue_reference/requirements/typedefs.cc:
Likewise.
* testsuite/20_util/common_type/requirements/typedefs-3.cc: Likewise.
* testsuite/20_util/conditional/requirements/typedefs-2.cc: Likewise.
* testsuite/20_util/decay/requirements/typedefs-2.cc: Likewise.
* testsuite/20_util/enable_if/requirements/typedefs-2.cc: Likewise.
* testsuite/20_util/make_signed/requirements/typedefs-3.cc: Likewise.
* testsuite/20_util/make_unsigned/requirements/typedefs-3.cc:
Likewise.
* testsuite/20_util/remove_reference/requirements/typedefs.cc:
Likewise.
* testsuite/20_util/result_of/requirements/typedefs.cc: Likewise.
* testsuite/20_util/underlying_type/requirements/typedefs-3.cc:
Likewise.

From-SVN: r216188

22 files changed:
libstdc++-v3/testsuite/20_util/add_lvalue_reference/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/add_lvalue_reference/requirements/typedefs.cc [deleted file]
libstdc++-v3/testsuite/20_util/add_rvalue_reference/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/add_rvalue_reference/requirements/typedefs.cc [deleted file]
libstdc++-v3/testsuite/20_util/common_type/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/common_type/requirements/typedefs-3.cc [deleted file]
libstdc++-v3/testsuite/20_util/conditional/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/conditional/requirements/typedefs-2.cc [deleted file]
libstdc++-v3/testsuite/20_util/decay/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/decay/requirements/typedefs-2.cc [deleted file]
libstdc++-v3/testsuite/20_util/enable_if/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/enable_if/requirements/typedefs-2.cc [deleted file]
libstdc++-v3/testsuite/20_util/make_signed/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/make_signed/requirements/typedefs-3.cc [deleted file]
libstdc++-v3/testsuite/20_util/make_unsigned/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs-3.cc [deleted file]
libstdc++-v3/testsuite/20_util/remove_reference/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/remove_reference/requirements/typedefs.cc [deleted file]
libstdc++-v3/testsuite/20_util/result_of/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/result_of/requirements/typedefs.cc [deleted file]
libstdc++-v3/testsuite/20_util/underlying_type/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/underlying_type/requirements/typedefs-3.cc [deleted file]

diff --git a/libstdc++-v3/testsuite/20_util/add_lvalue_reference/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/add_lvalue_reference/requirements/alias_decl.cc
new file mode 100644 (file)
index 0000000..b168544
--- /dev/null
@@ -0,0 +1,30 @@
+// { dg-options "-std=gnu++1y" }
+// { dg-do compile }
+
+// Copyright (C) 2013-2014 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/>.
+
+
+// NB: This file is for testing type_traits with NO OTHER INCLUDES.
+
+#include <type_traits>
+
+using namespace std;
+
+static_assert( is_same<typename add_lvalue_reference<long>::type,
+                       add_lvalue_reference_t<long>>(),
+               "add_lvalue_reference_t" );
diff --git a/libstdc++-v3/testsuite/20_util/add_lvalue_reference/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/add_lvalue_reference/requirements/typedefs.cc
deleted file mode 100644 (file)
index b168544..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// { dg-options "-std=gnu++1y" }
-// { dg-do compile }
-
-// Copyright (C) 2013-2014 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/>.
-
-
-// NB: This file is for testing type_traits with NO OTHER INCLUDES.
-
-#include <type_traits>
-
-using namespace std;
-
-static_assert( is_same<typename add_lvalue_reference<long>::type,
-                       add_lvalue_reference_t<long>>(),
-               "add_lvalue_reference_t" );
diff --git a/libstdc++-v3/testsuite/20_util/add_rvalue_reference/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/add_rvalue_reference/requirements/alias_decl.cc
new file mode 100644 (file)
index 0000000..ac1ecef
--- /dev/null
@@ -0,0 +1,30 @@
+// { dg-options "-std=gnu++1y" }
+// { dg-do compile }
+
+// Copyright (C) 2013-2014 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/>.
+
+
+// NB: This file is for testing type_traits with NO OTHER INCLUDES.
+
+#include <type_traits>
+
+using namespace std;
+
+static_assert( is_same<typename add_rvalue_reference<long>::type,
+                       add_rvalue_reference_t<long>>(),
+               "add_rvalue_reference_t" );
diff --git a/libstdc++-v3/testsuite/20_util/add_rvalue_reference/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/add_rvalue_reference/requirements/typedefs.cc
deleted file mode 100644 (file)
index ac1ecef..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// { dg-options "-std=gnu++1y" }
-// { dg-do compile }
-
-// Copyright (C) 2013-2014 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/>.
-
-
-// NB: This file is for testing type_traits with NO OTHER INCLUDES.
-
-#include <type_traits>
-
-using namespace std;
-
-static_assert( is_same<typename add_rvalue_reference<long>::type,
-                       add_rvalue_reference_t<long>>(),
-               "add_rvalue_reference_t" );
diff --git a/libstdc++-v3/testsuite/20_util/common_type/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/common_type/requirements/alias_decl.cc
new file mode 100644 (file)
index 0000000..63f5945
--- /dev/null
@@ -0,0 +1,27 @@
+// { dg-options "-std=gnu++1y" }
+// { dg-do compile }
+//
+// Copyright (C) 2013-2014 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 <type_traits>
+
+using namespace std;
+
+static_assert( is_same<common_type<int, long, char, unsigned>::type,
+                       common_type_t<int, long, char, unsigned>>(),
+               "common_type_t" );
diff --git a/libstdc++-v3/testsuite/20_util/common_type/requirements/typedefs-3.cc b/libstdc++-v3/testsuite/20_util/common_type/requirements/typedefs-3.cc
deleted file mode 100644 (file)
index 63f5945..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// { dg-options "-std=gnu++1y" }
-// { dg-do compile }
-//
-// Copyright (C) 2013-2014 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 <type_traits>
-
-using namespace std;
-
-static_assert( is_same<common_type<int, long, char, unsigned>::type,
-                       common_type_t<int, long, char, unsigned>>(),
-               "common_type_t" );
diff --git a/libstdc++-v3/testsuite/20_util/conditional/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/conditional/requirements/alias_decl.cc
new file mode 100644 (file)
index 0000000..a64538b
--- /dev/null
@@ -0,0 +1,33 @@
+// { dg-options "-std=gnu++1y" }
+// { dg-do compile }
+
+// Copyright (C) 2013-2014 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/>.
+
+
+// NB: This file is for testing type_traits with NO OTHER INCLUDES.
+
+#include <type_traits>
+
+using namespace std;
+
+static_assert( is_same<typename conditional<true, long, void>::type,
+                       conditional_t<true, long, void>>(),
+               "conditional_t<true, ...>" );
+static_assert( is_same<typename conditional<false, long, void>::type,
+                       conditional_t<false, long, void>>(),
+               "conditional_t<false, ...>" );
diff --git a/libstdc++-v3/testsuite/20_util/conditional/requirements/typedefs-2.cc b/libstdc++-v3/testsuite/20_util/conditional/requirements/typedefs-2.cc
deleted file mode 100644 (file)
index a64538b..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-// { dg-options "-std=gnu++1y" }
-// { dg-do compile }
-
-// Copyright (C) 2013-2014 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/>.
-
-
-// NB: This file is for testing type_traits with NO OTHER INCLUDES.
-
-#include <type_traits>
-
-using namespace std;
-
-static_assert( is_same<typename conditional<true, long, void>::type,
-                       conditional_t<true, long, void>>(),
-               "conditional_t<true, ...>" );
-static_assert( is_same<typename conditional<false, long, void>::type,
-                       conditional_t<false, long, void>>(),
-               "conditional_t<false, ...>" );
diff --git a/libstdc++-v3/testsuite/20_util/decay/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/decay/requirements/alias_decl.cc
new file mode 100644 (file)
index 0000000..468ba81
--- /dev/null
@@ -0,0 +1,35 @@
+// { dg-options "-std=gnu++1y" }
+// { dg-do compile }
+
+// Copyright (C) 2013-2014 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 <type_traits>
+
+using namespace std;
+
+template<typename Trait, typename Result>
+  using test = is_same<typename Trait::type, Result>;
+
+static_assert( test<decay<bool>, decay_t<bool>>(), "decay<bool>" );
+static_assert( test<decay<const int>, decay_t<const int>>(),
+               "decay<const int>" );
+static_assert( test<decay<int[4]>, decay_t<int[4]>>(), "decay<int[4]>" );
+typedef void (fn_type) ();
+static_assert( test<decay<fn_type>, decay_t<fn_type>>(), "decay<fn_type>" );
+typedef void (cfn_type) () const;
+static_assert( test<decay<cfn_type>, decay_t<cfn_type>>(), "decay<cfn_type>" );
diff --git a/libstdc++-v3/testsuite/20_util/decay/requirements/typedefs-2.cc b/libstdc++-v3/testsuite/20_util/decay/requirements/typedefs-2.cc
deleted file mode 100644 (file)
index 468ba81..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-// { dg-options "-std=gnu++1y" }
-// { dg-do compile }
-
-// Copyright (C) 2013-2014 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 <type_traits>
-
-using namespace std;
-
-template<typename Trait, typename Result>
-  using test = is_same<typename Trait::type, Result>;
-
-static_assert( test<decay<bool>, decay_t<bool>>(), "decay<bool>" );
-static_assert( test<decay<const int>, decay_t<const int>>(),
-               "decay<const int>" );
-static_assert( test<decay<int[4]>, decay_t<int[4]>>(), "decay<int[4]>" );
-typedef void (fn_type) ();
-static_assert( test<decay<fn_type>, decay_t<fn_type>>(), "decay<fn_type>" );
-typedef void (cfn_type) () const;
-static_assert( test<decay<cfn_type>, decay_t<cfn_type>>(), "decay<cfn_type>" );
diff --git a/libstdc++-v3/testsuite/20_util/enable_if/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/enable_if/requirements/alias_decl.cc
new file mode 100644 (file)
index 0000000..4c46da9
--- /dev/null
@@ -0,0 +1,29 @@
+// { dg-do compile }
+// { dg-options "-std=gnu++1y" }
+
+// Copyright (C) 2013-2014 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 <type_traits>
+
+using namespace std;
+
+static_assert( is_same<enable_if<true>::type, enable_if_t<true>>(),
+               "enable_if_t<true>" );
+struct X;
+static_assert( is_same<enable_if<true, X>::type, enable_if_t<true, X>>(),
+               "enable_if_t<true, X>" );
diff --git a/libstdc++-v3/testsuite/20_util/enable_if/requirements/typedefs-2.cc b/libstdc++-v3/testsuite/20_util/enable_if/requirements/typedefs-2.cc
deleted file mode 100644 (file)
index 4c46da9..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++1y" }
-
-// Copyright (C) 2013-2014 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 <type_traits>
-
-using namespace std;
-
-static_assert( is_same<enable_if<true>::type, enable_if_t<true>>(),
-               "enable_if_t<true>" );
-struct X;
-static_assert( is_same<enable_if<true, X>::type, enable_if_t<true, X>>(),
-               "enable_if_t<true, X>" );
diff --git a/libstdc++-v3/testsuite/20_util/make_signed/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/make_signed/requirements/alias_decl.cc
new file mode 100644 (file)
index 0000000..16c7c90
--- /dev/null
@@ -0,0 +1,35 @@
+// { dg-options "-std=gnu++1y" }
+// { dg-do compile }
+
+// Copyright (C) 2013-2014 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 <type_traits>
+
+using namespace std;
+
+template<typename Trait, typename Result>
+  using test = is_same<typename Trait::type, Result>;
+
+static_assert( test<make_signed<const int>, make_signed_t<const int>>(),
+               "make_signed_t<const int>" );
+
+static_assert( test<make_signed<unsigned>, make_signed_t<unsigned>>(),
+               "make_signed_t<unsigned>" );
+
+static_assert( test<make_signed<char>, make_signed_t<char>>(),
+               "make_signed_t<char>" );
diff --git a/libstdc++-v3/testsuite/20_util/make_signed/requirements/typedefs-3.cc b/libstdc++-v3/testsuite/20_util/make_signed/requirements/typedefs-3.cc
deleted file mode 100644 (file)
index 16c7c90..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-// { dg-options "-std=gnu++1y" }
-// { dg-do compile }
-
-// Copyright (C) 2013-2014 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 <type_traits>
-
-using namespace std;
-
-template<typename Trait, typename Result>
-  using test = is_same<typename Trait::type, Result>;
-
-static_assert( test<make_signed<const int>, make_signed_t<const int>>(),
-               "make_signed_t<const int>" );
-
-static_assert( test<make_signed<unsigned>, make_signed_t<unsigned>>(),
-               "make_signed_t<unsigned>" );
-
-static_assert( test<make_signed<char>, make_signed_t<char>>(),
-               "make_signed_t<char>" );
diff --git a/libstdc++-v3/testsuite/20_util/make_unsigned/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/make_unsigned/requirements/alias_decl.cc
new file mode 100644 (file)
index 0000000..5bdea5d
--- /dev/null
@@ -0,0 +1,35 @@
+// { dg-options "-std=gnu++1y" }
+// { dg-do compile }
+
+// Copyright (C) 2013-2014 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 <type_traits>
+
+using namespace std;
+
+template<typename Trait, typename Result>
+  using test = is_same<typename Trait::type, Result>;
+
+static_assert( test<make_unsigned<const int>, make_unsigned_t<const int>>(),
+               "make_unsigned_t<const int>" );
+
+static_assert( test<make_unsigned<unsigned>, make_unsigned_t<unsigned>>(),
+               "make_unsigned_t<unsigned>" );
+
+static_assert( test<make_unsigned<char>, make_unsigned_t<char>>(),
+               "make_unsigned_t<char>" );
diff --git a/libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs-3.cc b/libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs-3.cc
deleted file mode 100644 (file)
index 5bdea5d..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-// { dg-options "-std=gnu++1y" }
-// { dg-do compile }
-
-// Copyright (C) 2013-2014 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 <type_traits>
-
-using namespace std;
-
-template<typename Trait, typename Result>
-  using test = is_same<typename Trait::type, Result>;
-
-static_assert( test<make_unsigned<const int>, make_unsigned_t<const int>>(),
-               "make_unsigned_t<const int>" );
-
-static_assert( test<make_unsigned<unsigned>, make_unsigned_t<unsigned>>(),
-               "make_unsigned_t<unsigned>" );
-
-static_assert( test<make_unsigned<char>, make_unsigned_t<char>>(),
-               "make_unsigned_t<char>" );
diff --git a/libstdc++-v3/testsuite/20_util/remove_reference/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/remove_reference/requirements/alias_decl.cc
new file mode 100644 (file)
index 0000000..9c06e3b
--- /dev/null
@@ -0,0 +1,30 @@
+// { dg-options "-std=gnu++1y" }
+// { dg-do compile }
+
+// Copyright (C) 2013-2014 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 <type_traits>
+
+using namespace std;
+
+static_assert( is_same<remove_reference<int>::type, remove_reference_t<int>>(),
+               "remove_reference_t<int>" );
+static_assert( is_same<remove_reference<int&>::type, remove_reference_t<int&>>(),
+               "remove_reference_t<int&>" );
+static_assert( is_same<remove_reference<int&&>::type, remove_reference_t<int&&>>(),
+               "remove_reference_t<int&&>" );
diff --git a/libstdc++-v3/testsuite/20_util/remove_reference/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/remove_reference/requirements/typedefs.cc
deleted file mode 100644 (file)
index 9c06e3b..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// { dg-options "-std=gnu++1y" }
-// { dg-do compile }
-
-// Copyright (C) 2013-2014 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 <type_traits>
-
-using namespace std;
-
-static_assert( is_same<remove_reference<int>::type, remove_reference_t<int>>(),
-               "remove_reference_t<int>" );
-static_assert( is_same<remove_reference<int&>::type, remove_reference_t<int&>>(),
-               "remove_reference_t<int&>" );
-static_assert( is_same<remove_reference<int&&>::type, remove_reference_t<int&&>>(),
-               "remove_reference_t<int&&>" );
diff --git a/libstdc++-v3/testsuite/20_util/result_of/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/result_of/requirements/alias_decl.cc
new file mode 100644 (file)
index 0000000..730a66d
--- /dev/null
@@ -0,0 +1,32 @@
+// { dg-options "-std=gnu++1y" }
+// { dg-do compile }
+
+// Copyright (C) 2013-2014 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 <type_traits>
+
+using namespace std;
+
+using F1 = char(*)(char);
+static_assert( is_same<result_of<F1(int)>::type, result_of_t<F1(int)>>(),
+               "result_of_t<F1(int)>" );
+
+struct X { };
+using F2 = int X::*;
+static_assert( is_same<result_of<F2(X)>::type, result_of_t<F2(X)>>(),
+               "result_of_t<F2(X)>" );
diff --git a/libstdc++-v3/testsuite/20_util/result_of/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/result_of/requirements/typedefs.cc
deleted file mode 100644 (file)
index 730a66d..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// { dg-options "-std=gnu++1y" }
-// { dg-do compile }
-
-// Copyright (C) 2013-2014 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 <type_traits>
-
-using namespace std;
-
-using F1 = char(*)(char);
-static_assert( is_same<result_of<F1(int)>::type, result_of_t<F1(int)>>(),
-               "result_of_t<F1(int)>" );
-
-struct X { };
-using F2 = int X::*;
-static_assert( is_same<result_of<F2(X)>::type, result_of_t<F2(X)>>(),
-               "result_of_t<F2(X)>" );
diff --git a/libstdc++-v3/testsuite/20_util/underlying_type/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/underlying_type/requirements/alias_decl.cc
new file mode 100644 (file)
index 0000000..78090b7
--- /dev/null
@@ -0,0 +1,32 @@
+// { dg-options "-std=gnu++1y" }
+// { dg-do compile }
+//
+// Copyright (C) 2013-2014 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/>.
+
+//
+// NB: This file is for testing type_traits with NO OTHER INCLUDES.
+
+#include <type_traits>
+
+using namespace std;
+
+enum E : long { };
+
+static_assert( is_same<typename underlying_type<E>::type,
+                       underlying_type_t<E>>(),
+               "underlying_type_t" );
diff --git a/libstdc++-v3/testsuite/20_util/underlying_type/requirements/typedefs-3.cc b/libstdc++-v3/testsuite/20_util/underlying_type/requirements/typedefs-3.cc
deleted file mode 100644 (file)
index 78090b7..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// { dg-options "-std=gnu++1y" }
-// { dg-do compile }
-//
-// Copyright (C) 2013-2014 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/>.
-
-//
-// NB: This file is for testing type_traits with NO OTHER INCLUDES.
-
-#include <type_traits>
-
-using namespace std;
-
-enum E : long { };
-
-static_assert( is_same<typename underlying_type<E>::type,
-                       underlying_type_t<E>>(),
-               "underlying_type_t" );