summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-08-22 11:17:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-08-22 11:17:17 +0200
commit8387a0b45df48cd99bcd62f81d175cde509dc091 (patch)
tree06988610fffc6c1b07336271a0ed57024554ff33 /tests
parent2a24763c6fd6a75510ded0d030620aad1eba2b02 (diff)
Add support for C and C++-style comments
Diffstat (limited to 'tests')
-rw-r--r--tests/lexer/makefile2
-rw-r--r--tests/lexer/test-006.cli14
-rw-r--r--tests/lexer/test-006.std7
3 files changed, 22 insertions, 1 deletions
diff --git a/tests/lexer/makefile b/tests/lexer/makefile
index 0764869..71d46f7 100644
--- a/tests/lexer/makefile
+++ b/tests/lexer/makefile
@@ -7,7 +7,7 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make
cxx_tun := driver.cxx
-tests := 000 001 002 003 004 005
+tests := 000 001 002 003 004 005 006
#
#
diff --git a/tests/lexer/test-006.cli b/tests/lexer/test-006.cli
new file mode 100644
index 0000000..706f0f2
--- /dev/null
+++ b/tests/lexer/test-006.cli
@@ -0,0 +1,14 @@
+// c++ comment ;
+/* c comment ; */
+;
+"a" // foo
+"b"
+"a" /* foo
+bar
+baz */ "b";
+- // aaa
+5;
+- /* a
+a
+a*/ 5
+// eos \ No newline at end of file
diff --git a/tests/lexer/test-006.std b/tests/lexer/test-006.std
new file mode 100644
index 0000000..eaa9964
--- /dev/null
+++ b/tests/lexer/test-006.std
@@ -0,0 +1,7 @@
+;
+"a" "b" "a" "b"
+;
+-5
+;
+-5
+<EOS>