aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-02-12 19:35:59 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2011-02-12 18:35:59 +0000
commit63aa9440ee371e466b6c266f9cfd373e001685a4 (patch)
treeb3556cb73e83ccfdcc699ab79631d7f335710c65 /libstdc++-v3
parentdb0947327c7fb49fda878ce9d9f2fadfd19b1f3b (diff)
downloadgcc-63aa9440ee371e466b6c266f9cfd373e001685a4.zip
gcc-63aa9440ee371e466b6c266f9cfd373e001685a4.tar.gz
gcc-63aa9440ee371e466b6c266f9cfd373e001685a4.tar.bz2
re PR libstdc++/47662 (-fno-operator-names no longer works with STL headers)
2011-02-12 Jakub Jelinek <jakub@redhat.com> Jonathan Wakely <jwakely.gcc@gmail.com> PR libstdc++/47662 * testsuite/17_intro/headers/c++200x/operator_names.cc: New. * testsuite/17_intro/headers/c++1998/operator_names.cc: Add comment. Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com> From-SVN: r170084
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog7
-rw-r--r--libstdc++-v3/testsuite/17_intro/headers/c++1998/operator_names.cc2
-rw-r--r--libstdc++-v3/testsuite/17_intro/headers/c++200x/operator_names.cc30
3 files changed, 39 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 7e1445d..f25b6cf 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,10 @@
+2011-02-12 Jakub Jelinek <jakub@redhat.com>
+ Jonathan Wakely <jwakely.gcc@gmail.com>
+
+ PR libstdc++/47662
+ * testsuite/17_intro/headers/c++200x/operator_names.cc: New.
+ * testsuite/17_intro/headers/c++1998/operator_names.cc: Add comment.
+
2011-02-12 Paolo Carlini <paolo.carlini@oracle.com>
* include/tr1/cmath (fabs): Define.
diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++1998/operator_names.cc b/libstdc++-v3/testsuite/17_intro/headers/c++1998/operator_names.cc
index d1d01db..00e8bda 100644
--- a/libstdc++-v3/testsuite/17_intro/headers/c++1998/operator_names.cc
+++ b/libstdc++-v3/testsuite/17_intro/headers/c++1998/operator_names.cc
@@ -18,6 +18,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// libstdc++/47662
+
// Avoid using PCH
#include <cerrno>
#include <bits/stdc++.h>
diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++200x/operator_names.cc b/libstdc++-v3/testsuite/17_intro/headers/c++200x/operator_names.cc
new file mode 100644
index 0000000..9ad40f0
--- /dev/null
+++ b/libstdc++-v3/testsuite/17_intro/headers/c++200x/operator_names.cc
@@ -0,0 +1,30 @@
+// { dg-do compile }
+// { dg-options "-std=gnu++0x -fno-operator-names" }
+
+// 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/>.
+
+// libstdc++/47662
+
+// Avoid using PCH
+#include <cerrno>
+#include <bits/stdc++.h>
+#include <bits/stdtr1c++.h>
+#include <bits/extc++.h>
+
+int or, xor, and;
+