summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/keywords.idl
blob: f09b93ed87b7c3809a9b7f04210580492b66b667 (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
// $Id$

// ============================================================================
//
// = LIBRARY
//    TAO/tests/IDL_Test
//
// = FILENAME
//    keywords.idl
//
// = DESCRIPTION
//    This file contains examples of IDL code that has 
//    caused problems in the past for the TAO IDL
//    compiler. This test is to make sure the problems
//    stay fixed.
//
// = AUTHORS
//    Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
//
// ============================================================================

// All these identifiers should be accepted, but
// prepended with _cxx_.

// 'private' and 'public' have been commented out because they are now, in
// addition to being C++ keywords, IDL keywords, and thus are illegal
// except when used as such.

struct Keywords
{
  unsigned short or;
  char or_eq;
//  octet private;
  boolean protected;
//  float public;
  double int;
};

interface Testing
{
  void foo (in string namespace);
};