]> granicus.if.org Git - re2c/commitdiff
- Add new test
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Thu, 3 May 2007 11:37:13 +0000 (11:37 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Thu, 3 May 2007 11:37:13 +0000 (11:37 +0000)
re2c/test/bug1711240.eis.c [new file with mode: 0644]
re2c/test/bug1711240.eis.re [new file with mode: 0644]

diff --git a/re2c/test/bug1711240.eis.c b/re2c/test/bug1711240.eis.c
new file mode 100644 (file)
index 0000000..67fa34e
--- /dev/null
@@ -0,0 +1,34 @@
+/* Generated by re2c */
+char scan(const unsigned char *s)
+{
+
+{
+       YYCTYPE yych;
+
+       if(YYLIMIT == YYCURSOR) YYFILL(1);
+       yych = *YYCURSOR;
+       if(yych <= '=') {
+               if(yych == 0x07) goto yy5;
+               goto yy7;
+       } else {
+               if(yych <= '"') goto yy3;
+               if(yych <= 0xFF) goto yy7;
+       }
+yy3:
+       ++YYCURSOR;
+       {
+               return '"';
+       }
+yy5:
+       ++YYCURSOR;
+       {
+               return '\x2F';
+       }
+yy7:
+       ++YYCURSOR;
+       {
+               return '\0';
+       }
+}
+
+}
diff --git a/re2c/test/bug1711240.eis.re b/re2c/test/bug1711240.eis.re
new file mode 100644 (file)
index 0000000..fbcc4b0
--- /dev/null
@@ -0,0 +1,21 @@
+char scan(const unsigned char *s)
+{
+/*!re2c
+       '"'
+       {
+               return '"';
+       }
+       '\x2F'
+       {
+               return '\x2F';
+       }
+       '\x7F'
+       {
+               return '\x7F';
+       }
+       [^]
+       {
+               return '\0';
+       }
+*/
+}