diff options
Diffstat (limited to 'cli-tests/inheritance/test.cli')
-rw-r--r-- | cli-tests/inheritance/test.cli | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cli-tests/inheritance/test.cli b/cli-tests/inheritance/test.cli new file mode 100644 index 0000000..3b73848 --- /dev/null +++ b/cli-tests/inheritance/test.cli @@ -0,0 +1,25 @@ +// file : inheritance/test.cli +// author : Boris Kolpackov <boris@codesynthesis.com> +// license : MIT; see accompanying LICENSE file + +include <string>; + +class base1 = 0 +{ + bool --very-long-flag {"Long flag."}; +}; + +class base2 +{ + std::string -s {"<str>", "Short string."}; +}; + +class interm: base1 +{ + int -i = 1 {"<num>", "Integer."}; +}; + +class options: interm, base2 +{ + std::string --string {"<str>", "Long string."}; +}; |