summaryrefslogtreecommitdiff
path: root/tests/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-11-08 10:08:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-11-08 10:08:52 +0200
commit907b5fed58d53bbb5e25c590df97f01a0ac93733 (patch)
treeed0be81e05cdcacac39879ed71f40cedc9f81a92 /tests/parser
parent2e8197d1e910eeae607af3a1f581b212402c0caf (diff)
Implement option documentation support in frontend
Diffstat (limited to 'tests/parser')
-rw-r--r--tests/parser/makefile2
-rw-r--r--tests/parser/test-006.cli16
-rw-r--r--tests/parser/test-006.std0
3 files changed, 17 insertions, 1 deletions
diff --git a/tests/parser/makefile b/tests/parser/makefile
index c64e496..2d435b4 100644
--- a/tests/parser/makefile
+++ b/tests/parser/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/parser/test-006.cli b/tests/parser/test-006.cli
new file mode 100644
index 0000000..5b555e4
--- /dev/null
+++ b/tests/parser/test-006.cli
@@ -0,0 +1,16 @@
+// option-doc
+//
+class c
+{
+ bool --help | -h {"Help me"};
+
+ int --comp = 5
+ {
+ "<level>",
+ "Set compression level",
+ "Set compression level to <level>.
+
+ The minimum value for this options is 0 and
+ maximum is 9."
+ };
+};
diff --git a/tests/parser/test-006.std b/tests/parser/test-006.std
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/parser/test-006.std