summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3940_Regression/test.idl
blob: 904c8910ddc6692a08f2aca9a45733049f94779e (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
#if !defined (__BORLANDC__)

@annotation unit {
  string value;
};

@annotation range {
  double min;
  double max;
};

@annotation min {
  long value;
};

@annotation max {
  long value;
};

@annotation key {
};

module test {

   @unit("deg")
   @range(min=0.0, max=360.0)
   typedef float angle_t;

   @unit("degC") @min(-60) @max(100) typedef short temperature_t;

   struct structure {
      @key unsigned long key;
      angle_t degrees;
      temperature_t celsius;
   };

};

#endif