summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/objects/TestIntfI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/objects/TestIntfI.cpp')
-rw-r--r--cpp/test/Ice/objects/TestIntfI.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/cpp/test/Ice/objects/TestIntfI.cpp b/cpp/test/Ice/objects/TestIntfI.cpp
new file mode 100644
index 00000000000..e4e393b1b3e
--- /dev/null
+++ b/cpp/test/Ice/objects/TestIntfI.cpp
@@ -0,0 +1,33 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2015 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.
+//
+// **********************************************************************
+
+#include <Ice/Ice.h>
+#include <TestI.h>
+#include <Derived.h>
+#include <DerivedEx.h>
+
+using namespace Test;
+
+BasePtr
+TestIntfI::opDerived(const Ice::Current&)
+{
+ DerivedPtr d = new Derived();
+ d->theS.str = "S.str";
+ d->str = "str";
+ d->b = "b";
+ return d;
+}
+
+void
+TestIntfI::throwDerived(const Ice::Current&)
+{
+ DerivedEx ex;
+ ex.reason = "reason";
+ throw ex;
+}