From 11915f2ead8446ed5d3457717a5ce0a73eb406c4 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 15 Oct 2014 09:26:05 +0000 Subject: [PATCH] alias_decl.cc: New. 2014-10-15 Paolo Carlini * testsuite/20_util/add_const/requirements/alias_decl.cc: New. * testsuite/20_util/add_cv/requirements/alias_decl.cc: Likewise. * testsuite/20_util/add_pointer/requirements/alias_decl.cc: Likewise. * testsuite/20_util/add_volatile/requirements/alias_decl.cc: Likewise. * testsuite/20_util/aligned_storage/requirements/alias_decl.cc: Likewise. * testsuite/20_util/aligned_union/requirements/alias_decl.cc: Likewise. * testsuite/20_util/remove_all_extents/requirements/alias_decl.cc: Likewise. * testsuite/20_util/remove_const/requirements/alias_decl.cc: Likewise. * testsuite/20_util/remove_cv/requirements/alias_decl.cc: Likewise. * testsuite/20_util/remove_extent/requirements/alias_decl.cc: Likewise. * testsuite/20_util/remove_pointer/requirements/alias_decl.cc: Likewise. * testsuite/20_util/remove_volatile/requirements/alias_decl.cc: Likewise. From-SVN: r216245 --- libstdc++-v3/ChangeLog | 19 +++++++++++ .../add_const/requirements/alias_decl.cc | 33 +++++++++++++++++++ .../20_util/add_cv/requirements/alias_decl.cc | 33 +++++++++++++++++++ .../add_pointer/requirements/alias_decl.cc | 33 +++++++++++++++++++ .../add_volatile/requirements/alias_decl.cc | 33 +++++++++++++++++++ .../requirements/alias_decl.cc | 29 ++++++++++++++++ .../aligned_union/requirements/alias_decl.cc | 29 ++++++++++++++++ .../requirements/alias_decl.cc | 33 +++++++++++++++++++ .../remove_const/requirements/alias_decl.cc | 33 +++++++++++++++++++ .../remove_cv/requirements/alias_decl.cc | 33 +++++++++++++++++++ .../remove_extent/requirements/alias_decl.cc | 33 +++++++++++++++++++ .../remove_pointer/requirements/alias_decl.cc | 33 +++++++++++++++++++ .../requirements/alias_decl.cc | 33 +++++++++++++++++++ 13 files changed, 407 insertions(+) create mode 100644 libstdc++-v3/testsuite/20_util/add_const/requirements/alias_decl.cc create mode 100644 libstdc++-v3/testsuite/20_util/add_cv/requirements/alias_decl.cc create mode 100644 libstdc++-v3/testsuite/20_util/add_pointer/requirements/alias_decl.cc create mode 100644 libstdc++-v3/testsuite/20_util/add_volatile/requirements/alias_decl.cc create mode 100644 libstdc++-v3/testsuite/20_util/aligned_storage/requirements/alias_decl.cc create mode 100644 libstdc++-v3/testsuite/20_util/aligned_union/requirements/alias_decl.cc create mode 100644 libstdc++-v3/testsuite/20_util/remove_all_extents/requirements/alias_decl.cc create mode 100644 libstdc++-v3/testsuite/20_util/remove_const/requirements/alias_decl.cc create mode 100644 libstdc++-v3/testsuite/20_util/remove_cv/requirements/alias_decl.cc create mode 100644 libstdc++-v3/testsuite/20_util/remove_extent/requirements/alias_decl.cc create mode 100644 libstdc++-v3/testsuite/20_util/remove_pointer/requirements/alias_decl.cc create mode 100644 libstdc++-v3/testsuite/20_util/remove_volatile/requirements/alias_decl.cc diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2a05b977716..71d49275804 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,22 @@ +2014-10-15 Paolo Carlini + + * testsuite/20_util/add_const/requirements/alias_decl.cc: New. + * testsuite/20_util/add_cv/requirements/alias_decl.cc: Likewise. + * testsuite/20_util/add_pointer/requirements/alias_decl.cc: Likewise. + * testsuite/20_util/add_volatile/requirements/alias_decl.cc: Likewise. + * testsuite/20_util/aligned_storage/requirements/alias_decl.cc: + Likewise. + * testsuite/20_util/aligned_union/requirements/alias_decl.cc: Likewise. + * testsuite/20_util/remove_all_extents/requirements/alias_decl.cc: + Likewise. + * testsuite/20_util/remove_const/requirements/alias_decl.cc: Likewise. + * testsuite/20_util/remove_cv/requirements/alias_decl.cc: Likewise. + * testsuite/20_util/remove_extent/requirements/alias_decl.cc: Likewise. + * testsuite/20_util/remove_pointer/requirements/alias_decl.cc: + Likewise. + * testsuite/20_util/remove_volatile/requirements/alias_decl.cc: + Likewise. + 2014-10-15 Paolo Carlini * include/std/limits: Remove stray spaces after backslash. diff --git a/libstdc++-v3/testsuite/20_util/add_const/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/add_const/requirements/alias_decl.cc new file mode 100644 index 00000000000..b900e4c0b59 --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/add_const/requirements/alias_decl.cc @@ -0,0 +1,33 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + add_const_t>(), + "add_const_t" ); + +static_assert (is_same::type, + add_const_t>(), + "add_const_t" ); diff --git a/libstdc++-v3/testsuite/20_util/add_cv/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/add_cv/requirements/alias_decl.cc new file mode 100644 index 00000000000..ea54a677ba3 --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/add_cv/requirements/alias_decl.cc @@ -0,0 +1,33 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + add_cv_t>(), + "add_cv_t" ); + +static_assert (is_same::type, + add_cv_t>(), + "add_cv_t" ); diff --git a/libstdc++-v3/testsuite/20_util/add_pointer/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/add_pointer/requirements/alias_decl.cc new file mode 100644 index 00000000000..ff4d589117b --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/add_pointer/requirements/alias_decl.cc @@ -0,0 +1,33 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + add_pointer_t>(), + "add_pointer_t" ); + +static_assert (is_same::type, + add_pointer_t>(), + "add_pointer_t" ); diff --git a/libstdc++-v3/testsuite/20_util/add_volatile/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/add_volatile/requirements/alias_decl.cc new file mode 100644 index 00000000000..6eee2f6df75 --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/add_volatile/requirements/alias_decl.cc @@ -0,0 +1,33 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + add_volatile_t>(), + "add_volatile_t" ); + +static_assert (is_same::type, + add_volatile_t>(), + "add_volatile_t" ); diff --git a/libstdc++-v3/testsuite/20_util/aligned_storage/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/aligned_storage/requirements/alias_decl.cc new file mode 100644 index 00000000000..dc5ec5f768e --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/aligned_storage/requirements/alias_decl.cc @@ -0,0 +1,29 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + aligned_storage_t<4>>(), + "aligned_storage_t" ); diff --git a/libstdc++-v3/testsuite/20_util/aligned_union/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/aligned_union/requirements/alias_decl.cc new file mode 100644 index 00000000000..5e8746815d1 --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/aligned_union/requirements/alias_decl.cc @@ -0,0 +1,29 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + aligned_union_t<0, char, int>>(), + "aligned_union_t" ); diff --git a/libstdc++-v3/testsuite/20_util/remove_all_extents/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/remove_all_extents/requirements/alias_decl.cc new file mode 100644 index 00000000000..d9067207896 --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/remove_all_extents/requirements/alias_decl.cc @@ -0,0 +1,33 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + remove_all_extents_t>(), + "remove_all_extents_t" ); + +static_assert (is_same::type, + remove_all_extents_t>(), + "remove_all_extents_t" ); diff --git a/libstdc++-v3/testsuite/20_util/remove_const/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/remove_const/requirements/alias_decl.cc new file mode 100644 index 00000000000..62df9acc215 --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/remove_const/requirements/alias_decl.cc @@ -0,0 +1,33 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + remove_const_t>(), + "remove_const_t" ); + +static_assert (is_same::type, + remove_const_t>(), + "remove_const_t" ); diff --git a/libstdc++-v3/testsuite/20_util/remove_cv/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/remove_cv/requirements/alias_decl.cc new file mode 100644 index 00000000000..3841eab538b --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/remove_cv/requirements/alias_decl.cc @@ -0,0 +1,33 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + remove_cv_t>(), + "remove_cv_t" ); + +static_assert (is_same::type, + remove_cv_t>(), + "remove_cv_t" ); diff --git a/libstdc++-v3/testsuite/20_util/remove_extent/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/remove_extent/requirements/alias_decl.cc new file mode 100644 index 00000000000..598c5cd3c49 --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/remove_extent/requirements/alias_decl.cc @@ -0,0 +1,33 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + remove_extent_t>(), + "remove_extent_t" ); + +static_assert (is_same::type, + remove_extent_t>(), + "remove_extent_t" ); diff --git a/libstdc++-v3/testsuite/20_util/remove_pointer/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/remove_pointer/requirements/alias_decl.cc new file mode 100644 index 00000000000..0f2857b7d61 --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/remove_pointer/requirements/alias_decl.cc @@ -0,0 +1,33 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + remove_pointer_t>(), + "remove_pointer_t" ); + +static_assert (is_same::type, + remove_pointer_t>(), + "remove_pointer_t" ); diff --git a/libstdc++-v3/testsuite/20_util/remove_volatile/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/remove_volatile/requirements/alias_decl.cc new file mode 100644 index 00000000000..c842cacfc6a --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/remove_volatile/requirements/alias_decl.cc @@ -0,0 +1,33 @@ +// { dg-options "-std=gnu++1y" } +// { dg-do compile } + +// Copyright (C) 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 +// . + +// NB: This file is for testing type_traits with NO OTHER INCLUDES. + +#include + +using namespace std; + +static_assert (is_same::type, + remove_volatile_t>(), + "remove_volatile_t" ); + +static_assert (is_same::type, + remove_volatile_t>(), + "remove_volatile_t" ); -- 2.30.2