aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/lexer+first.test.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/cc/lexer+first.test.testscript')
-rw-r--r--libbuild2/cc/lexer+first.test.testscript25
1 files changed, 25 insertions, 0 deletions
diff --git a/libbuild2/cc/lexer+first.test.testscript b/libbuild2/cc/lexer+first.test.testscript
new file mode 100644
index 0000000..5c55030
--- /dev/null
+++ b/libbuild2/cc/lexer+first.test.testscript
@@ -0,0 +1,25 @@
+# file : libbuild2/cc/lexer+first.test.testscript
+# license : MIT; see accompanying LICENSE file
+
+# Test the first token of a logical line logic.
+#
+
+: basics
+:
+$* -f <<EOI >>EOO
+; .
+ ; .
+; // Hello
+;
+; /* Hello
+World */ .
+EOI
+';' t
+'.' f
+';' t
+'.' f
+';' t
+';' t
+';' t
+'.' f
+EOO