summaryrefslogtreecommitdiff
path: root/cpp/test/Slice/structure/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Slice/structure/Client.cpp')
-rw-r--r--cpp/test/Slice/structure/Client.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/cpp/test/Slice/structure/Client.cpp b/cpp/test/Slice/structure/Client.cpp
index c0b88ebd337..1d91a6e3029 100644
--- a/cpp/test/Slice/structure/Client.cpp
+++ b/cpp/test/Slice/structure/Client.cpp
@@ -38,10 +38,20 @@ allTests(const Ice::CommunicatorPtr& communicator)
def_s2.il.push_back(2);
def_s2.il.push_back(3);
def_s2.sd["abc"] = "def";
+#ifdef ICE_CPP11_MAPPING
+ def_s2.s = {"name"};
+#else
def_s2.s = new S1("name");
- def_s2.cls = new C(5);
+#endif
+ def_s2.cls = ICE_MAKE_SHARED(C, 5);
def_s2.prx = communicator->stringToProxy("test");
+#ifndef ICE_CPP11_MAPPING
+ //
+ // cpp:comparable required by tests bellow is only
+ // supported with C++98 mapping.
+ //
+
//
// Change one primitive member at a time.
//
@@ -248,7 +258,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
v2.prx = 0;
test(v1 != v2);
}
-
+#endif
cout << "ok" << endl;
}