Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / IDL_Test / sequence_anonymous.idl
blob416d311bd9b437a2046907af1f79ce4977047925
1 //=============================================================================
2 /**
3 * @file sequence_anonymous.idl
5 * This file contains examples of IDL code that has
6 * caused problems in the past for the TAO IDL
7 * compiler. This test is to make sure the problems
8 * stay fixed.
11 * @author Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
13 //=============================================================================
15 // Bounded string elements of a sequence,
16 // require the use of CORBA_Any::to_char.
17 interface seqTest
19 typedef sequence< string<12> > dozens;
21 void send_dozen (inout dozens bouquets);
24 // Anonymous sequence members must be unique types even if the
25 // sequence itself is not, so the member name has been
26 // incorported into the sequence class name. #if !defined guards
27 // are generated around code for the inner anonymous sequences.
28 struct twinStruct
30 sequence<sequence<short> > and_;
31 sequence<sequence<short> > or_;
34 // Nested sequences
35 typedef sequence<sequence<short, 5> > outside;
37 struct nestedSeqStruct
39 sequence<sequence<outside>, 7> inside;