// ********************************************************************** // // Copyright (c) 2003-2016 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 #include #include using namespace Test; using namespace std; int main(int argc, char* argv[]) { int status = EXIT_SUCCESS; try { cout << "testing Slice predefined macros... " << flush; DefaultPtr d = ICE_MAKE_SHARED(Default); test(d->x == 10); test(d->y == 10); CppOnlyPtr c = ICE_MAKE_SHARED(CppOnly); test(c->lang == "cpp"); test(c->version == ICE_INT_VERSION); cout << "ok" << endl; } catch(const Ice::Exception& ex) { cerr << ex << endl; status = EXIT_FAILURE; } return status; }