Index: third_party/re2/re2/testing/compile_test.cc |
diff --git a/third_party/re2/re2/testing/compile_test.cc b/third_party/re2/re2/testing/compile_test.cc |
index 8d92105e21501ea9003c4ab2bdb2bda6a94884a8..d438b1933f0fbba3ea474abf394e93aa812427ff 100644 |
--- a/third_party/re2/re2/testing/compile_test.cc |
+++ b/third_party/re2/re2/testing/compile_test.cc |
@@ -99,6 +99,10 @@ static Test tests[] = { |
{ "[Aa]", |
"1. byte/i [61-61] -> 2\n" |
"2. match! 0\n" }, |
+ // Issue 20992936 |
+ { "[[-`]", |
+ "1. byte [5b-60] -> 2\n" |
+ "2. match! 0\n" }, |
}; |
TEST(TestRegexpCompileToProg, Simple) { |