summaryrefslogtreecommitdiff
path: root/matlab/test/Ice/inheritance/Test.ice
diff options
context:
space:
mode:
Diffstat (limited to 'matlab/test/Ice/inheritance/Test.ice')
-rw-r--r--matlab/test/Ice/inheritance/Test.ice86
1 files changed, 86 insertions, 0 deletions
diff --git a/matlab/test/Ice/inheritance/Test.ice b/matlab/test/Ice/inheritance/Test.ice
new file mode 100644
index 00000000000..a69bc817104
--- /dev/null
+++ b/matlab/test/Ice/inheritance/Test.ice
@@ -0,0 +1,86 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#pragma once
+
+[["matlab:package:test.Ice.inheritance"]]
+[["suppress-warning:deprecated"]] // For classes with operations
+
+module Test
+{
+
+module MA
+{
+
+interface IA
+{
+ IA* iaop(IA* p);
+}
+
+class CA
+{
+ CA* caop(CA* p);
+}
+
+}
+
+module MB
+{
+
+interface IB1 extends MA::IA
+{
+ IB1* ib1op(IB1* p);
+}
+
+interface IB2 extends MA::IA
+{
+ IB2* ib2op(IB2* p);
+}
+
+class CB extends MA::CA
+{
+ CB* cbop(CB* p);
+}
+
+}
+
+module MA
+{
+
+interface IC extends MB::IB1, MB::IB2
+{
+ IC* icop(IC* p);
+}
+
+class CC extends MB::CB
+{
+ CC* ccop(CC* p);
+}
+
+class CD extends CC implements MB::IB1, MB::IB2
+{
+ CD* cdop(CD* p);
+}
+
+}
+
+interface Initial
+{
+ void shutdown();
+ MA::CA* caop();
+ MB::CB* cbop();
+ MA::CC* ccop();
+ MA::CD* cdop();
+ MA::IA* iaop();
+ MB::IB1* ib1op();
+ MB::IB2* ib2op();
+ MA::IC* icop();
+}
+
+}