-// { dg-options "-std=gnu++11" }
+// { dg-do run { target c++11 } }
+// { dg-timeout-factor 3 }
//
// 2013-09-02 Tim Shen <timshen91@gmail.com>
//
-// Copyright (C) 2013 Free Software Foundation, Inc.
+// Copyright (C) 2013-2023 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
#include <regex>
#include <testsuite_hooks.h>
+#include <testsuite_regex.h>
+using namespace __gnu_test;
using namespace std;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
#define TESTL(res, s) \
{\
wregex re(res);\
wstring st(s);\
- VERIFY(!regex_match(st, re));\
+ VERIFY(!regex_match_debug(st, re));\
}
TESTL(L".", L"\u2028");
TESTL(L".", L"\u2029");