summaryrefslogtreecommitdiff
path: root/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp')
-rw-r--r--test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp b/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp
index 4b7e5e629294..3f1eaf6b959e 100644
--- a/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp
+++ b/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp
@@ -16,13 +16,14 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
-int main()
+int main()
{
using std::regex_constants::awk;
assert(std::regex_match("\4", std::regex("\\4", awk)));
assert(std::regex_match("\41", std::regex("\\41", awk)));
assert(std::regex_match("\141", std::regex("\\141", awk)));
- assert(std::regex_match("\1411", std::regex("\\1411", awk)));
+ assert(std::regex_match("\141" "1", std::regex("\\1411", awk)));
}