Update ooo320-m1
[ooovba.git] / idlc / test / const.idl
blob8fbf80cde8bff1398be187b8fbdf3c940084f2fa
1 module idlc
3 module test
5 const long l = 1;
6 const long add = 1 + 2;
7 const long sub = 3 - 2;
8 const hyper h = 123456789;
9 const float f7 = 3.4123;
10 const float f2 = 3.4123 + 10e-12;
11 const boolean bt = True;
12 const boolean bf = False;
13 const boolean and = bt & bf;
15 /// SHORT_MAX + 1;
16 const short shortMax = -0x8000;
17 /// LONG_MAX + 1;
18 const unsigned long longMax = 0x80000000;
21 constants USER
23 /// = 1
24 const long FLAG1 = 0x00000001;
25 /// = 2
26 const long FLAG2 = 0x00000002;
27 /// = 4
28 const long FLAG3 = 0x00000004;
29 /// = 8
30 const long FLAG4 = 0x00000008;
31 /// = 16
32 const long FLAG5 = 0x00000010;
33 /// = 0
34 const long FLAG6 = FLAG1 & FLAG2;
35 /// = 3
36 const long FLAG7 = FLAG1 | FLAG2;
37 /// = 2
38 const long FLAG8 = (FLAG1 | FLAG2) & FLAG2;
39 /// = 4
40 const long FLAG9 = FLAG1 << 2;
41 /// = 32
42 const long FLAG10 = (FLAG5 >> 1) << 2;
43 /// = 1
44 const long FLAG11 = 33 % 4;
45 /// = 4
46 const long FLAG12 = FLAG10 / 8;