diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-05-10 17:54:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-05-10 17:54:18 +0200 |
commit | 443293aaf09eca7c3b88d621d056c4effee2c248 (patch) | |
tree | a35c7b2354295b5b73462c0806e04e2deef58171 /tests/parser/test-003.cli | |
parent | 4f9022f24c4591391637121c7274d9855b37bd93 (diff) |
Implement option class inheritance
For now multiple, non-virtual inheritance is supported. An option class
can now also be declared abstract using the class c = 0 {...}; syntax.
New option, --exclude-base, controls whether base class information is
present in usage and documentation.
Diffstat (limited to 'tests/parser/test-003.cli')
-rw-r--r-- | tests/parser/test-003.cli | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/tests/parser/test-003.cli b/tests/parser/test-003.cli index bfd8c72..2920b16 100644 --- a/tests/parser/test-003.cli +++ b/tests/parser/test-003.cli @@ -1,9 +1,23 @@ -// class-def +// class-def, inheritance-spec, abstract-spec // class c1 { }; -class c2 +class c2 = 0 { -};
\ No newline at end of file +}; + +class c3: c1, ::c2 +{ +}; + +namespace n1 +{ + class c {}; +} + +class c4: n1::c = 0 +{ +}; + |