summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2122_Regression/Test.idl
blob: af0590742667658f867bcb8254b291f41d265b2b (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
40
41
42
43
44
45
46
47
48
49
50
51
/**
 * @file Test.idl
 *
 * $Id$
 *
 */

module Test
{
   typedef string<10> MyStringType;
   typedef string<10> MyOtherStringType;     // Note: SAME LENGTH

   interface Foo
   {
      void op1( in MyStringType s );
      void op2( in MyOtherStringType s );
   };
};

module Foo
{
   module One
   {
      typedef string<40> MyString;

      interface Whatever
      {
         void someOp( in MyString s );
      };
   };

   module Two
   {
      typedef string<100> MyString; // Same name, different size!

      interface WhoCares
      {
         void someOp( in MyString s );
      };
   };

   module Three
   {
      typedef string<100> MyString; // Same name, same size!

      interface WhoCares
      {
         void someOp( in MyString s );
      };
   };
};