From 17f3d99119c1e101097cdf5e6abbca49f46754fc Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Wed, 27 May 2015 16:48:32 +0100 Subject: [PATCH] Added some more on 're2c:startlabel = ;' configuration. --- .../segfault_full_range_star_startlabel2.ci.c | 20 +++++++++++++++++++ ...segfault_full_range_star_startlabel2.ci.re | 4 ++++ .../segfault_full_range_star_startlabel2.i.c | 14 +++++++++++++ .../segfault_full_range_star_startlabel2.i.re | 4 ++++ 4 files changed, 42 insertions(+) create mode 100644 re2c/test/segfault_full_range_star_startlabel2.ci.c create mode 100644 re2c/test/segfault_full_range_star_startlabel2.ci.re create mode 100644 re2c/test/segfault_full_range_star_startlabel2.i.c create mode 100644 re2c/test/segfault_full_range_star_startlabel2.i.re diff --git a/re2c/test/segfault_full_range_star_startlabel2.ci.c b/re2c/test/segfault_full_range_star_startlabel2.ci.c new file mode 100644 index 00000000..3bbb7ba1 --- /dev/null +++ b/re2c/test/segfault_full_range_star_startlabel2.ci.c @@ -0,0 +1,20 @@ +/* Generated by re2c */ + +{ + YYCTYPE yych; +yy0: + switch (YYGETCONDITION()) { + case yycc1: goto yyc_c1; + } +/* *********************************** */ +yyc_c1: + goto yy1; +yy2: + ++YYCURSOR; +yy1: + if (YYLIMIT <= YYCURSOR) YYFILL(1); + yych = *YYCURSOR; + goto yy2; + {} +} + diff --git a/re2c/test/segfault_full_range_star_startlabel2.ci.re b/re2c/test/segfault_full_range_star_startlabel2.ci.re new file mode 100644 index 00000000..a178eada --- /dev/null +++ b/re2c/test/segfault_full_range_star_startlabel2.ci.re @@ -0,0 +1,4 @@ +/*!re2c + re2c:startlabel = 1; + [^]* {} +*/ diff --git a/re2c/test/segfault_full_range_star_startlabel2.i.c b/re2c/test/segfault_full_range_star_startlabel2.i.c new file mode 100644 index 00000000..9d406ce0 --- /dev/null +++ b/re2c/test/segfault_full_range_star_startlabel2.i.c @@ -0,0 +1,14 @@ +/* Generated by re2c */ + +{ + YYCTYPE yych; + goto yy0; +yy1: + ++YYCURSOR; +yy0: + if (YYLIMIT <= YYCURSOR) YYFILL(1); + yych = *YYCURSOR; + goto yy1; + {} +} + diff --git a/re2c/test/segfault_full_range_star_startlabel2.i.re b/re2c/test/segfault_full_range_star_startlabel2.i.re new file mode 100644 index 00000000..57e99b3f --- /dev/null +++ b/re2c/test/segfault_full_range_star_startlabel2.i.re @@ -0,0 +1,4 @@ +/*!re2c + re2c:startlabel = 1; + [^]* {} +*/ -- 2.40.0