summaryrefslogtreecommitdiff
path: root/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp')
-rw-r--r--test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp b/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp
index 9459cd74ccff..3c7e9f5e33c7 100644
--- a/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp
+++ b/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp
@@ -17,8 +17,9 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
-static bool error_escape_thrown(const char *pat)
+static bool error_escape_thrown(const char *pat)
{
bool result = false;
try {
@@ -29,7 +30,7 @@ static bool error_escape_thrown(const char *pat)
return result;
}
-int main()
+int main()
{
assert(error_escape_thrown("[\\a]"));
assert(error_escape_thrown("\\a"));