summaryrefslogtreecommitdiff
path: root/cpp/test/Slice/macros/Client.cpp
blob: 98b51ad4fc9827dce4c6298137de900118611927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

#include <Ice/Ice.h>
#include <TestHelper.h>
#include <Test.h>

using namespace Test;
using namespace std;

class Client : public Test::TestHelper
{
public:

    void run(int, char**);
};

void
Client::run(int, char**)
{
    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;
}

DEFINE_TEST(Client)