summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-08 14:59:36 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-08 14:59:36 +0000
commit8c6e071d2804b348938996fc69dc49a7a8030c00 (patch)
treea01e4d6c1d9e6b8d20b8a17cac0d538e36ae025d
parent81573ac9477db6acd3f77d6f6d7768029289682d (diff)
downloadgcc-8c6e071d2804b348938996fc69dc49a7a8030c00.tar.gz
Use -std option in test for C99 macros in <cmath>
* testsuite/26_numerics/headers/cmath/ c99_classification_macros_c++.cc: Rename to ... * testsuite/26_numerics/headers/cmath/ c99_classification_macros_c++98.cc: Here and add -std=gnu++98. * testsuite/26_numerics/headers/cmath/ c99_classification_macros_c++0x.cc: Rename to ... * testsuite/26_numerics/headers/cmath/ c99_classification_macros_c++11.cc: Here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232165 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog9
-rw-r--r--libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++11.cc (renamed from libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++0x.cc)0
-rw-r--r--libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++98.cc (renamed from libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++.cc)2
3 files changed, 10 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 917ba23975f..e0cc2a670a1 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,14 @@
2016-01-08 Jonathan Wakely <jwakely@redhat.com>
+ * testsuite/26_numerics/headers/cmath/
+ c99_classification_macros_c++.cc: Rename to ...
+ * testsuite/26_numerics/headers/cmath/
+ c99_classification_macros_c++98.cc: Here and add -std=gnu++98.
+ * testsuite/26_numerics/headers/cmath/
+ c99_classification_macros_c++0x.cc: Rename to ...
+ * testsuite/26_numerics/headers/cmath/
+ c99_classification_macros_c++11.cc: Here.
+
PR libstdc++/69190
* include/bits/uses_allocator.h: Add missing include.
diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++0x.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++11.cc
index 1638667d7fa..1638667d7fa 100644
--- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++0x.cc
+++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++11.cc
diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++98.cc
index 6e81b6813ae..4c4cc4e85b8 100644
--- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++.cc
+++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++98.cc
@@ -17,7 +17,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-
+// { dg-options "-std=gnu++98" }
// { dg-do compile { xfail uclibc } }
// { dg-excess-errors "" { target uclibc } }