aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/17_intro
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-09-26 17:08:24 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-09-26 17:08:24 +0100
commit8eb60b2f2254eee16d44ed5169837743b0debd5a (patch)
treecea0852e9ebdb76e333940a39b32612299dca7ce /libstdc++-v3/testsuite/17_intro
parent25a0f9cfaeca20baeaaa0c76911821949aadcb40 (diff)
downloadgcc-8eb60b2f2254eee16d44ed5169837743b0debd5a.zip
gcc-8eb60b2f2254eee16d44ed5169837743b0debd5a.tar.gz
gcc-8eb60b2f2254eee16d44ed5169837743b0debd5a.tar.bz2
Remove include directives for deleted Profile Mode headers
* include/std/array: Remove references to profile mode. * include/std/bitset: Likewise. * include/std/deque: Likewise. * include/std/forward_list: Likewise. * include/std/list: Likewise. * include/std/map: Likewise. * include/std/set: Likewise. * include/std/unordered_map: Likewise. * include/std/unordered_set: Likewise. * include/std/vector: Likewise. * testsuite/17_intro/headers/c++1998/profile_mode.cc: New test. * testsuite/17_intro/headers/c++2011/profile_mode.cc: New test. From-SVN: r276152
Diffstat (limited to 'libstdc++-v3/testsuite/17_intro')
-rw-r--r--libstdc++-v3/testsuite/17_intro/headers/c++1998/profile_mode.cc23
-rw-r--r--libstdc++-v3/testsuite/17_intro/headers/c++2011/profile_mode.cc23
2 files changed, 46 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++1998/profile_mode.cc b/libstdc++-v3/testsuite/17_intro/headers/c++1998/profile_mode.cc
new file mode 100644
index 0000000..d8749f8
--- /dev/null
+++ b/libstdc++-v3/testsuite/17_intro/headers/c++1998/profile_mode.cc
@@ -0,0 +1,23 @@
+// Copyright (C) 2019 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/>.
+
+// { dg-options "-std=gnu++98" }
+// { dg-do compile }
+
+// This macro should have no effect now
+#define _GLIBCXX_PROFILE 1
+#include <bits/extc++.h>
diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2011/profile_mode.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2011/profile_mode.cc
new file mode 100644
index 0000000..4cf7c5d
--- /dev/null
+++ b/libstdc++-v3/testsuite/17_intro/headers/c++2011/profile_mode.cc
@@ -0,0 +1,23 @@
+// Copyright (C) 2019 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/>.
+
+// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
+
+// This macro should have no effect now
+#define _GLIBCXX_PROFILE 1
+#include <vector>