]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove dg-options "-std=gnu++20" from std::format tests
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Sep 2023 20:28:03 +0000 (21:28 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 20:57:39 +0000 (21:57 +0100)
The testsuite will automatically select C++20 for these tests now, and
removing the hardcoded -std option allows them to be tested for C++23
and C++26 as well.

libstdc++-v3/ChangeLog:

* testsuite/std/format/arguments/args.cc: Remove dg-options.
* testsuite/std/format/arguments/lwg3810.cc: Likewise.
* testsuite/std/format/error.cc: Likewise.
* testsuite/std/format/format_string.cc: Likewise.
* testsuite/std/format/formatter/concept.cc: Likewise.
* testsuite/std/format/formatter/ext_float.cc: Likewise.
* testsuite/std/format/formatter/requirements.cc: Likewise.
* testsuite/std/format/functions/107871.cc: Likewise.
* testsuite/std/format/functions/format.cc: Likewise.
* testsuite/std/format/functions/format_to.cc: Likewise.
* testsuite/std/format/functions/format_to_n.cc: Likewise.
* testsuite/std/format/functions/size.cc: Likewise.
* testsuite/std/format/functions/vformat_to.cc: Likewise.
* testsuite/std/format/parse_ctx.cc: Likewise.
* testsuite/std/format/string.cc: Likewise.
* testsuite/std/format/string_neg.cc: Likewise.
* testsuite/std/format/functions/format_c++23.cc: Removed.

17 files changed:
libstdc++-v3/testsuite/std/format/arguments/args.cc
libstdc++-v3/testsuite/std/format/arguments/lwg3810.cc
libstdc++-v3/testsuite/std/format/error.cc
libstdc++-v3/testsuite/std/format/format_string.cc
libstdc++-v3/testsuite/std/format/formatter/concept.cc
libstdc++-v3/testsuite/std/format/formatter/ext_float.cc
libstdc++-v3/testsuite/std/format/formatter/requirements.cc
libstdc++-v3/testsuite/std/format/functions/107871.cc
libstdc++-v3/testsuite/std/format/functions/format.cc
libstdc++-v3/testsuite/std/format/functions/format_c++23.cc [deleted file]
libstdc++-v3/testsuite/std/format/functions/format_to.cc
libstdc++-v3/testsuite/std/format/functions/format_to_n.cc
libstdc++-v3/testsuite/std/format/functions/size.cc
libstdc++-v3/testsuite/std/format/functions/vformat_to.cc
libstdc++-v3/testsuite/std/format/parse_ctx.cc
libstdc++-v3/testsuite/std/format/string.cc
libstdc++-v3/testsuite/std/format/string_neg.cc

index ae2eab6d5600762d87a983c95e7e24882b23cb92..a45f3fb24dfa69041568a9705aaab626b769c75b 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <format>
index 9ccb654de1bda57274fe4d6292d7b9e8ab8aa9e4..f89f40203cb673a96ce276888c2d6ef5f139b892 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 // LWG 3810. CTAD for std::basic_format_args
index a6918f5ab2e1395cfaa50a6aa31f654f8dd0eb7a..878f60e0ec9a69821988c12384c010d14dac94ab 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <format>
index 1dd6ca8f12581b15715524e4f0b95d3432b2d97e..71c3d5d68f643ad0faf80c5d704c0ba1aacf667b 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <format>
index fe56dc44a68628642d1d7cf6b446677eebcee884..e28a8c20a877db7c273a1901d41971420428fc7d 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++23" }
 // { dg-do compile { target c++23 } }
 
 #include <format>
index 89810295b643155f6e232df5136e08be72714d5a..82e696fa797c525feac21c45c3ac4eb9dd05fb3a 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <format>
index 7d95f7fafe98456c43ac83337133312070e73b39..bde67e586efc27317d2169899d3c5f07c7cc6a9e 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <format>
index 1fb558e7ac6f73bdb2e84e21062d10c0415f4403..f9125b930afcb22e7dbd063beb06be6409ee7df3 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <format>
index 5141cbd11bf58f96e5c25375184ba80bc8e85404..dacc276e03c32890c411524dd669b5b8241a00cd 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 // { dg-add-options no_pch }
 
diff --git a/libstdc++-v3/testsuite/std/format/functions/format_c++23.cc b/libstdc++-v3/testsuite/std/format/functions/format_c++23.cc
deleted file mode 100644 (file)
index 3caa70f..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// { dg-do run { target c++23 } }
-// { dg-add-options no_pch }
-// This test does not have -std=gnu++20 in dg-options so that format.cc
-// can be tested for e.g. -std=c++26
-#include "format.cc"
index c5c3c503625c3abd68420b9410df73f715d5a3d4..94e6262bc663edfc3f58d8cd6c8a239d1251a562 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <format>
index f7df3ed36dc27f4bb64f53c567f41f15840614c4..d698222252886e5260cb1d272ce297598925d295 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <format>
index 4509a7ccd73f806e717b763366de16ddffec4520..1ece4108d852b2ec28fa29fb1ca598dd301bb6c5 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <format>
index 6fa33b9fbacd533e2969c6667adfc50316ff42ae..fe0367f74967324351694f96aa895c0ac451f208 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <format>
index 260caf123d0d4371a677d95c2aa8b33be657835c..497427b54e5d31f939240dcac21b5410b01e4d9c 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <format>
index a472f8d588c213c26b7ef79f9c401c3f3634f2fa..5d338644c6209239ef0bfbfce46cebdbbf97e74c 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <format>
index 8ec7096ffd3850d46f1c45afd3c1f9fcc914708a..7a60ef8cf0e57d8d54555e207e617ced1e689bf9 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <format>