summaryrefslogtreecommitdiff
path: root/objective-c/test/Slice/keyword/Key.ice
blob: 1ca6f9cb59d17205eb886bcafdcf3b401f2bca9d (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
85
86
87
88
// **********************************************************************
//
// 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.
//
// **********************************************************************

module and
{

enum continue
{
    asm
};

struct auto
{
    int default;
};

["cpp:class"] struct delete
{
    string else;
};

interface break
{
    void case(int catch, out int try);
};

interface char
{
    void explicit();
};

class switch
{
    int if;
    void foo(char* export, out int volatile);
    void foo2(char* export, ["objc:param:y"] int YES, out ["objc:param:nil2"] int nil);
    void foo3(char* export, out int nil);
};

class do extends switch implements char, break
{
};

sequence<auto> extern;

dictionary<string,auto> for;

exception return
{
    int signed;
};

exception sizeof extends return
{
    int static;
    int switch;
};

local interface friend
{
	auto goto(continue if, auto d, delete inline, switch private, do mutable, break* namespace,
		  char* new, switch* not, do* operator, int or, int protected, int public, int register)
            throws return, sizeof;

	void objc(int bycopy, int byref, int id, int IMP, int in, int inout, int nil, int NO, int oneway,
		int SEL, int super, int YES);
};

const int template = 0;
const int this = 0;
const int throw = 0;
const int typedef = 0;
const int typeid = 0;
const int typename = 0;
const int union = 0;
const int unsigned = 0;
const int using = 0;
const int virtual = 0;
const int while = 0;
const int xor = 0;

};