This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Fix non-portable std::regex test and test more cases
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sun, 31 Jul 2016 19:54:29 +0100
- Subject: Re: [PATCH] Fix non-portable std::regex test and test more cases
- Authentication-results: sourceware.org; auth=none
- References: <20160731184618.GA6361@redhat.com>
On 31/07/16 19:46 +0100, Jonathan Wakely wrote:
diff --git a/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc b/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc
index 5625653..758f216 100644
--- a/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc
+++ b/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++11" }
Oops, I didn't mean to commit this chunk (I had to remove it to check
running the test with -std=c++11 and forgot to restore it).
This replaces it with { target c++11 } which is better anyway.
Committed to trunk.
commit 98281f356518ee6ddc4b10c459bb8dcc21b1eeab
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Sun Jul 31 19:51:40 2016 +0100
Enable std::regex test for C++11 or later
* testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc: Only
run for C++11 or later.
diff --git a/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc b/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc
index 758f216..c2ac901 100644
--- a/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc
+++ b/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc
@@ -1,3 +1,4 @@
+// { dg-do run { target c++11 } }
// 2012-08-20 Benjamin Kosnik <bkoz@redhat.com>
//