summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/array_anon_nested.idl
blob: d10972445c610e9eb633b3bde7d0f7a8e4124614 (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

//=============================================================================
/**
 *  @file    array_anon_nested.idl
 *
 *  $Id$
 *
 *  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.
 *
 *
 *  @author Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
 */
//=============================================================================


/// There was a problem generating the *_Forany
/// for the inner array. This construct is in a separate
/// IDL file for two reasons - (1) to avoid the -GA
/// option, which does not work when there are constructs
/// that result in nested C++ classes, and (2) to avoid
/// the RTI DDS processor, which chokes on this unusual
/// IDL.
typedef struct teststruct
{
  char b[4];

  struct embeddedstruct
  {
    char a[4];
  } estruct;

} tstruct;