From: helly Date: Mon, 2 Apr 2007 22:00:24 +0000 (+0000) Subject: - Add new test X-Git-Tag: 0.13.6~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c73dcabad8130973e2a3dd208e6057e824391033;p=re2c - Add new test --- diff --git a/re2c/test/bug1682718.c b/re2c/test/bug1682718.c new file mode 100755 index 00000000..145c5ea0 --- /dev/null +++ b/re2c/test/bug1682718.c @@ -0,0 +1,58 @@ +/* Generated by re2c */ +#line 1 "bug1682718.re" +char *scan(char *p) +{ + +#line 7 "" + { + unsigned char yych; + + yych = (unsigned char)*p; + switch(yych) { + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': goto yy2; + default: goto yy4; + } +yy2: + ++p; + yych = (unsigned char)*p; + goto yy7; +yy3: +#line 9 "bug1682718.re" + {return p;} +#line 32 "" +yy4: + ++p; +#line 10 "bug1682718.re" + {return (char*)0;} +#line 37 "" +yy6: + ++p; + yych = (unsigned char)*p; +yy7: + switch(yych) { + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': goto yy6; + default: goto yy3; + } + } +#line 11 "bug1682718.re" + +} +