summaryrefslogtreecommitdiff
path: root/tests/parser/test-006.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-08-22 10:25:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-08-22 10:25:12 +0200
commitfabbe60b014a02b2ab94e57ab3866e28c67d36ce (patch)
tree4d776980683dcc118392bd7b67520383918be8ab /tests/parser/test-006.cli
parent1470fed809be7b11f147f8a6ca924a252b473c97 (diff)
Add a test for the parser
Diffstat (limited to 'tests/parser/test-006.cli')
-rw-r--r--tests/parser/test-006.cli51
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/parser/test-006.cli b/tests/parser/test-006.cli
new file mode 100644
index 0000000..7c70887
--- /dev/null
+++ b/tests/parser/test-006.cli
@@ -0,0 +1,51 @@
+class c
+{
+ bool --bool;
+ char --char;
+
+ int -i1;
+ unsigned int -i2;
+ int unsigned -i3;
+ long -i4;
+ long int -i5;
+ int long -i6;
+ unsigned long -i7;
+ long unsigned -i8;
+
+ unsigned long int -i9;
+ long unsigned int -i10;
+ int long unsigned -i11;
+ unsigned int long -i12;
+
+ short -i13;
+ unsigned short -i14;
+ short unsigned -i15;
+
+ char -i16;
+ signed char -i17;
+ char signed -i18;
+ unsigned char -i19;
+ char unsigned -i20;
+
+ double -d1;
+ long double -d2;
+ double long -d3;
+
+ foo -o1;
+ ::foo -o2;
+ ::foo<bar> -o3;
+ foo::bar -o4;
+ ::foo::bar -o5;
+ ::foo<bar>::baz -o6;
+ ::foo<bar>::baz< ::fox<2> > -o7;
+
+ bool -n|--name|/name;
+
+ string -init1 = "string";
+ char -init2 = 'c';
+ int -init3 = -5;
+ bool -inti4 = true;
+ long -init5 = (2 * 4 - 5);
+ type -init6 = type::default_value;
+ type -init7 (abc, 2 - 1);
+};