summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.regex
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/re/re.regex')
-rw-r--r--libcxx/test/std/re/re.regex/re.regex.construct/bad_backref.pass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/test/std/re/re.regex/re.regex.construct/bad_backref.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.construct/bad_backref.pass.cpp
index e66d3e976db..8e886cd8d1a 100644
--- a/libcxx/test/std/re/re.regex/re.regex.construct/bad_backref.pass.cpp
+++ b/libcxx/test/std/re/re.regex/re.regex.construct/bad_backref.pass.cpp
@@ -34,6 +34,7 @@ int main()
{
assert(error_badbackref_thrown("\\1abc")); // no references
assert(error_badbackref_thrown("ab(c)\\2def")); // only one reference
+ assert(error_badbackref_thrown("\\800000000000000000000000000000")); // overflows
// this should NOT throw, because we only should look at the '1'
// See https://bugs.llvm.org/show_bug.cgi?id=31387
OpenPOWER on IntegriCloud