blob: b7955fa13678071b18c5d27cd97508436b338c0e (
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
34
35
36
37
38
39
40
41
42
43
|
// **********************************************************************
//
// Copyright (c) 2003-2013 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 <TestCommon.h>
#include <Test.h>
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 = new Default();
test(d->x == 10);
test(d->y == 10);
NoDefaultPtr nd = new NoDefault();
test(nd->x != 10);
test(nd->y != 10);
CppOnlyPtr c = new 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;
}
|