public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testbase)] libstdc++: Require c++98_only effective target for a test
@ 2020-07-22  7:45 Alexandre Oliva
  0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2020-07-22  7:45 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:5079855e7ebe8fd4a7f9005dd75fa35f8cd54daa

commit 5079855e7ebe8fd4a7f9005dd75fa35f8cd54daa
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Jul 2 21:27:12 2020 +0100

    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:
---
 libstdc++-v3/testsuite/27_io/basic_ios/conv/voidptr.cc | 1 +
 1 file changed, 1 insertion(+)

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 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++98" }
+// { dg-do run { target c++98_only } }
 
 #include <ios>
 #include <testsuite_hooks.h>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-22  7:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-22  7:45 [gcc(refs/users/aoliva/heads/testbase)] libstdc++: Require c++98_only effective target for a test Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).