diff options
author | Jason Merrill <jason@redhat.com> | 2023-06-27 16:11:54 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2023-06-27 23:29:44 -0400 |
commit | dcd538933f8559b4ca9467da8eff3040f5af6166 (patch) | |
tree | 47e82987836f0e705217e7ef2e1f3a98e9ca8fbb /gcc | |
parent | d35702d90e559f20f6c17d55cb0276c4fc60766c (diff) | |
download | gcc-dcd538933f8559b4ca9467da8eff3040f5af6166.zip gcc-dcd538933f8559b4ca9467da8eff3040f5af6166.tar.gz gcc-dcd538933f8559b4ca9467da8eff3040f5af6166.tar.bz2 |
testsuite: std_list handling for { target c++26 }
As with c++23, we want to run { target c++26 } tests even though it isn't
part of the default std_list.
C++17 with Concepts TS is no longer an interesting target configuration.
And bump the impcx target to use C++26 mode instead of 23.
gcc/testsuite/ChangeLog:
* lib/g++-dg.exp (g++-dg-runtest): Update for C++26.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/lib/g++-dg.exp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/testsuite/lib/g++-dg.exp b/gcc/testsuite/lib/g++-dg.exp index 08185a8..046d631 100644 --- a/gcc/testsuite/lib/g++-dg.exp +++ b/gcc/testsuite/lib/g++-dg.exp @@ -58,17 +58,17 @@ proc g++-dg-runtest { testcases flags default-extra-flags } { # single test. This should be updated or commented # out whenever the default std_list is updated or newer # C++ effective target is added. - if [search_for $test "{ dg-do * { target c++23 } }"] { - set std_list { 23 } + if [search_for $test "\{ dg-do * \{ target c++23"] { + set std_list { 23 26 } + } elseif [search_for $test "\{ dg-do * \{ target c++26"] { + set std_list { 26 } } else { set std_list { 98 14 17 20 } } } set option_list { } foreach x $std_list { - # Handle "concepts" as C++17 plus Concepts TS. - if { $x eq "concepts" } then { set x "17 -fconcepts" - } elseif { $x eq "impcx" } then { set x "23 -fimplicit-constexpr" } + if { $x eq "impcx" } then { set x "26 -fimplicit-constexpr" } lappend option_list "${std_prefix}$x" } } else { |