Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / IDL_Test / expressions.idl
blob50739eec980f028ff600a3690c2a353c2b744f38
1 module ShortValues {
2 const short a = 6;
3 const short b = 3;
4 const short div = a / b;
5 const short mul = a * b;
6 const short add = a + b;
7 const short sub = a - b;
8 const short mod = a % b;
9 };
11 module LongValues {
12 const long a = 6;
13 const long b = 3;
14 const long div = a / b;
15 const long mul = a * b;
16 const long add = a + b;
17 const long sub = a - b;
18 const long mod = a % b;
21 module MixedIntValues {
22 const long div = LongValues::a / ShortValues::b;
23 const long mul = LongValues::a * ShortValues::b;
24 const long add = LongValues::a + ShortValues::b;
25 const long sub = LongValues::a - ShortValues::b;
26 const long mod = LongValues::a % ShortValues::b;
29 module FloatValues {
30 const float a = 6.0;
31 const float b = 3.0;
32 const float div = a / b;
33 const float mul = a * b;
34 const float add = a + b;
35 const float sub = a - b;
38 module DoubleValues {
39 const double a = 6.0;
40 const double b = 3.0;
41 const double div = a / b;
42 const double mul = a * b;
43 const double add = a + b;
44 const double sub = a - b;
47 module MixedFloatValues {
48 const double div = DoubleValues::a / FloatValues::b;
49 const double mul = DoubleValues::a * FloatValues::b;
50 const double add = DoubleValues::a + FloatValues::b;
51 const double sub = DoubleValues::a - FloatValues::b;