]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add { target c++98_only } to tests
authorJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 13:09:01 +0000 (14:09 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 15:24:34 +0000 (16:24 +0100)
These test behaviour only seen with -std=c++03 so the target selector
should match.

libstdc++-v3/ChangeLog:

* testsuite/20_util/bitset/107037.cc: Add c++98_only selector.
* testsuite/26_numerics/complex/56111.cc: Likewise.

libstdc++-v3/testsuite/20_util/bitset/107037.cc
libstdc++-v3/testsuite/26_numerics/complex/56111.cc

index b4560dd3775293f9332efaa13b85a7fd9959358f..3b2bb80277e75d5acb406e650dfa37e46575ae33 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-options "-std=c++03" }
-// { dg-do compile }
+// { dg-do compile { target c++98_only } }
 // PR libstdc++/107037 bitset::_M_do_reset fails for strict -std=c++03 mode
 #include <bitset>
 template class std::bitset<0>;
index e583b190ee1943703b5035ac92729d6d17644706..0237ed356e128e1b8fa5d3bde67b73b8bbcfebc4 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
 // { dg-options "-std=c++98" }
+// { dg-do compile { target c++98_only } }
 
 // Copyright (C) 2013-2023 Free Software Foundation, Inc.
 //