2 # Licensed to the Apache Software Foundation (ASF) under one
3 # or more contributor license agreements. See the NOTICE file
4 # distributed with this work for additional information
5 # regarding copyright ownership. The ASF licenses this file
6 # to you under the Apache License, Version 2.0 (the
7 # "License"); you may not use this file except in compliance
8 # with the License. You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing,
13 # software distributed under the License is distributed on an
14 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 # KIND, either express or implied. See the License for the
16 # specific language governing permissions and limitations
20 # We are only testing that generated code compiles, no correctness checking is done
22 exception moderate_disaster {
27 exception total_disaster {
29 2: optional bool president_was_woken_up = false
33 1: required i64 whatever
38 void void_with_1ex() throws(1: moderate_disaster err1)
39 void void_with_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
42 string stringfunc_1ex() throws(1: moderate_disaster err1)
43 string stringfunc_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
46 i64 i64func_1ex() throws(1: moderate_disaster err1)
47 i64 i64func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
49 list<string> list_of_strings_func()
50 list<string> list_of_strings_func_1ex() throws(1: moderate_disaster err1)
51 list<string> list_of_strings_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
53 map<i64,string> map_func()
54 map<i64,string> map_func_1ex() throws(1: moderate_disaster err1)
55 map<i64,string> map_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
57 struct_a struct_a_func()
58 struct_a struct_a_func_1ex() throws(1: moderate_disaster err1)
59 struct_a struct_a_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
61 void voidfunc_1int(1: i64 i),
62 void void_with_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
63 void void_with_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
65 string stringfunc_1int(1: i64 i)
66 string stringfunc_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
67 string stringfunc_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
69 i64 i64func_1int(1: i64 i)
70 i64 i64func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
71 i64 i64func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
73 list<string> list_of_strings_func_1int(1: i64 i)
74 list<string> list_of_strings_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
75 list<string> list_of_strings_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
77 map<i64,string> map_func_1int(1: i64 i)
78 map<i64,string> map_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
79 map<i64,string> map_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
81 struct_a struct_a_func_1int(1: i64 i)
82 struct_a struct_a_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
83 struct_a struct_a_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
85 void voidfunc_1int_1s(1: i64 i, 2: string s),
86 void void_with_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
87 void void_with_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
89 string stringfunc_1int_1s(1: i64 i, 2: string s)
90 string stringfunc_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
91 string stringfunc_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
93 i64 i64func_1int_1s(1: i64 i, 2: string s)
94 i64 i64func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
95 i64 i64func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
97 list<string> list_of_strings_func_1int_1s(1: i64 i, 2: string s)
98 list<string> list_of_strings_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
99 list<string> list_of_strings_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
101 map<i64,string> map_func_1int_1s(1: i64 i, 2: string s)
102 map<i64,string> map_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
103 map<i64,string> map_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
105 struct_a struct_a_func_1int_1s(1: i64 i, 2: string s)
106 struct_a struct_a_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
107 struct_a struct_a_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
109 struct_a struct_a_func_1struct_a(1: struct_a st)