From 443293aaf09eca7c3b88d621d056c4effee2c248 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 May 2012 17:54:18 +0200 Subject: 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. --- tests/parser/test-007.cli | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/parser/test-007.cli (limited to 'tests/parser/test-007.cli') diff --git a/tests/parser/test-007.cli b/tests/parser/test-007.cli new file mode 100644 index 0000000..3e5ca7f --- /dev/null +++ b/tests/parser/test-007.cli @@ -0,0 +1,29 @@ +// base class lookup +// + +include "test-007-base.cli"; + +class c1 {}; +class c2: c1 {}; +class c3: ::c1 {}; + +namespace n1 +{ + class c4 {}; + class c5: c4 {}; + class c6: n1::c4 {}; + class c7: ::n1::c4 {}; + + class c8: b2 {}; // From included. + class c9: i1::b3 {}; // From included. + + namespace i1 + { + class c10: c4 {}; // Outer scope. + class c11: b3 {}; // From included. + class c12: b2 {}; // Outer scope from included. + } +} + +class c13: n1::c4 {}; +class c14: ::n1::c4 {}; -- cgit v1.1