This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, libstdc++/65420] Use constexpr variables as regex_constans flags
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Tim Shen <timshen at google dot com>
- Cc: Daniel Krügler <daniel dot kruegler at gmail dot com>, libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 27 Mar 2015 12:44:21 +0000
- Subject: Re: [Patch, libstdc++/65420] Use constexpr variables as regex_constans flags
- Authentication-results: sourceware.org; auth=none
- References: <CAPrifDk-5WAM+DetRrubBgLN0q_LucbEA=68GL4rMWyUBmomDA at mail dot gmail dot com> <CAH6eHdTKhQLgpjCfKmGDA6-ddWgmi0wjE2PJCsy+zmiTqwUGYw at mail dot gmail dot com> <CAG4ZjN=F=AsqN_wBGY-+Acz_UNBL2e+k_jF8zx3dY5GKaBLNyA at mail dot gmail dot com>
On 15/03/15 23:27 -0700, Tim Shen wrote:
+#include <regex>
+#include <testsuite_hooks.h>
+
+// libstdc++/65420
+void
+test01()
+{
+ bool test __attribute__((unused)) = true;
I forgot to say that for a { dg-do compile } test you don't need a
'test' variable and don't need to #include <testsuite_hooks.h>,