diff options
Diffstat (limited to 'CIAO/tests/IDL3/Components/SimpleComponent/SimpleComponent.idl')
-rw-r--r-- | CIAO/tests/IDL3/Components/SimpleComponent/SimpleComponent.idl | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/CIAO/tests/IDL3/Components/SimpleComponent/SimpleComponent.idl b/CIAO/tests/IDL3/Components/SimpleComponent/SimpleComponent.idl new file mode 100644 index 00000000000..8b020a77e54 --- /dev/null +++ b/CIAO/tests/IDL3/Components/SimpleComponent/SimpleComponent.idl @@ -0,0 +1,96 @@ +// $Id$ +/** + * @file SimpleComponent.idl + * + * Tests simple component declarations. + */ + +#include <Components.idl> + +module VerySimple +{ + + component Foo + { + }; + + home FooHome manages Foo + { + }; + +}; + +module SupportsInterface +{ + interface foo_interface + { + }; + + component Foo supports foo_interface + { + }; + + home FooHome manages Foo + { + }; + +}; + + +module SupportsMultiple +{ + interface foo_interface + { + }; + + interface bar_interface + { + }; + + component FooBar supports foo_interface, bar_interface + { + }; + + home FooBarHome manages FooBar + { + }; +}; + +module Inheritance +{ + interface foo_interface + { + }; + + interface Bar_interface + { + }; + + component Foo supports foo_interface + { + }; + + component Bar : Foo + { + }; + + home FooHome manages Foo + { + }; + + home BarHome manages Bar + { + }; + + +}; + +module Bug_2790_Regression +{ + // It is legal for a derived component to support an interface + interface Wibble {}; + interface Wobble {}; + component Bobble {}; + component Bibble : Bobble supports Wibble, Wobble {}; +}; + |