]> granicus.if.org Git - re2c/commitdiff
- Add new test
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 2 Apr 2007 22:00:24 +0000 (22:00 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 2 Apr 2007 22:00:24 +0000 (22:00 +0000)
re2c/test/bug1682718.c [new file with mode: 0755]

diff --git a/re2c/test/bug1682718.c b/re2c/test/bug1682718.c
new file mode 100755 (executable)
index 0000000..145c5ea
--- /dev/null
@@ -0,0 +1,58 @@
+/* Generated by re2c */
+#line 1 "bug1682718.re"
+char *scan(char *p)
+{
+
+#line 7 "<stdout>"
+       {
+               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 "<stdout>"
+yy4:
+               ++p;
+#line 10 "bug1682718.re"
+               {return (char*)0;}
+#line 37 "<stdout>"
+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"
+
+}
+