]> granicus.if.org Git - onig/commitdiff
add a test case
authorK.Kosako <kosako@sofnec.co.jp>
Mon, 26 Aug 2019 00:38:29 +0000 (09:38 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Mon, 26 Aug 2019 00:38:29 +0000 (09:38 +0900)
test/test_utf8.c

index 21acff8fdf4af20a209efc4a00026a0dcf81306f..9682a1a0256f71a37de746268c2e40c09b3fd578 100644 (file)
@@ -1208,6 +1208,7 @@ extern int main(int argc, char* argv[])
   x2("((?(a)\\g<1>|b))", "aab", 0, 3);
   x2("((?(a)\\g<1>))", "aab", 0, 2);
   x2("(b(?(a)|\\g<1>))", "bba", 0, 3);
+  e("(()(?(2)\\g<1>))", "", ONIGERR_NEVER_ENDING_RECURSION);
 
   n("   \xfd", ""); /* https://bugs.php.net/bug.php?id=77370 */
   /* can't use \xfc00.. because compiler error: hex escape sequence out of range */