summaryrefslogtreecommitdiff
path: root/tests/quote_in_comment.l
diff options
context:
space:
mode:
Diffstat (limited to 'tests/quote_in_comment.l')
-rw-r--r--tests/quote_in_comment.l16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/quote_in_comment.l b/tests/quote_in_comment.l
new file mode 100644
index 0000000..a5743c2
--- /dev/null
+++ b/tests/quote_in_comment.l
@@ -0,0 +1,16 @@
+%option 8bit noyywrap
+%%
+.|\n { ECHO;
+ //' "
+ }
+%%
+int
+main (void)
+{
+ yyin = stdin;
+ yyout = stdout;
+ while (yylex())
+ ;
+ printf("TEST RETURNING OK.\n");
+ return 0;
+}