summaryrefslogtreecommitdiff
path: root/java/test/Ice/translator/TestSingleModuleWithPackage13.ice
blob: 085d0cdaa98b322e981cf524ffed602bdc144900 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// **********************************************************************
//
// Copyright (c) 2003-2017 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.
//
// **********************************************************************

// Test: use SingleModuleWithPackage types from (same) double module with (same) package definitions

#include <SingleModuleWithPackage.ice>

[["java:package:smwp"]]

module M
{
module N
{

const smwpEnum smwpTest13Constant = smwpE1;

struct smwpTest13Struct
{
    smwpEnum e;
    smwpStruct s;
    smwpStructSeq seq;
    smwpStringStructDict dict;
    smwpClass c;
    smwpInterface i;
};

sequence<smwpStruct> smwpTest13StructSeq;

dictionary<smwpStruct, smwpBaseClass> smwpTest13StructClassSeq;

interface smwpTest13Interface extends smwpInterface {};

exception smwpTest13Exception extends smwpException
{
    smwpEnum e1;
    smwpStruct s1;
    smwpStructSeq seq1;
    smwpStringStructDict dict1;
    smwpClass c1;
    smwpInterface i1;
};

class smwpTest13Class extends smwpBaseClass implements smwpBaseInterface
{
    smwpStruct
    smwpTest13Op1(smwpEnum i1,
                  smwpStruct i2,
                  smwpStructSeq i3,
                  smwpStringStructDict i4,
                  smwpInterface i5,
                  smwpClass i6,
                  out smwpEnum o1,
                  out smwpStruct o2,
                  out smwpStructSeq o3,
                  out smwpStringStructDict o4,
                  out smwpInterface o5,
                  out smwpClass o6)
        throws smwpException;

    ["amd"]
    smwpStruct
    smwpTest13Op3(smwpEnum i1,
                  smwpStruct i2,
                  smwpStructSeq i3,
                  smwpStringStructDict i4,
                  smwpInterface i5,
                  smwpClass i6,
                  out smwpEnum o1,
                  out smwpStruct o2,
                  out smwpStructSeq o3,
                  out smwpStringStructDict o4,
                  out smwpInterface o5,
                  out smwpClass o6)
        throws smwpException;
};

};
};