From: Jonathan Wakely Date: Thu, 2 Jul 2020 20:27:12 +0000 (+0100) Subject: libstdc++: Require c++98_only effective target for a test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5079855e7ebe8fd4a7f9005dd75fa35f8cd54daa;p=gcc.git libstdc++: Require c++98_only effective target for a test This test checks a conversion which only exists in C++98 and won't compile since C++11. It uses { dg-options "-std=gnu++98" } so that it is explicitly run in C++98 mode. This change also adds a target selector so that the test will be skipped if the dg-options directive is filtered out or overridden. libstdc++-v3/ChangeLog: * testsuite/27_io/basic_ios/conv/voidptr.cc: Add c++98_only target selector. --- diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/conv/voidptr.cc b/libstdc++-v3/testsuite/27_io/basic_ios/conv/voidptr.cc index 680157f2d10..76a3ab7a6f4 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ios/conv/voidptr.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ios/conv/voidptr.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++98" } +// { dg-do run { target c++98_only } } #include #include