blob: 1cdc98ab6edd4c90b097ed95de52a8a9338a58cc [file] [log] [blame]
Mark Sleea4713ea2007-01-05 01:09:04 +00001cpp_namespace yozone
2
3struct thing {
4 1: i32 hello,
5 2: i32 goodbye
6}
7
8const i32 hex_const = 0x0001F
9
10const i32 GEN_ME = -3523553
11const double GEn_DUB = 325.532
12const double GEn_DU = 085.2355
13const string GEN_STRING = "asldkjasfd"
14
15const map<i32,i32> GEN_MAP = { 35532 : 233, 43523 : 853 }
16const list<i32> GEN_LIST = [ 235235, 23598352, 3253523 ]
17
18const map<i32, map<i32, i32>> GEN_MAPMAP = { 235 : { 532 : 53255, 235:235}}
19
20const map<string,i32> GEN_MAP2 = { "hello" : 233, "lkj98d" : 853, 'lkjsdf' : 098325 }
21
22const thing GEN_THING = { 'hello' : 325, 'goodbye' : 325352 }
23
24const map<i32,thing> GEN_WHAT = { 35 : { 'hello' : 325, 'goodbye' : 325352 } }
25
26const set<i32> GEN_SET = [ 235, 235, 53235 ]
27
28exception Blah {
29 1: i32 bing }
30
31exception Gak {}
32
33service yowza {
34 void blingity(),
35 i32 blangity() throws (1: Blah hoot )
36}