This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, libstdc++/65420] Use constexpr variables as regex_constans flags


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>,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]