//============================================================================= /** * @file anonymous.idl * * 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 and TAO users. */ //============================================================================= // Normal typedef'd sequence module Not_Anon { typedef sequence short_seq; }; // Array is typedef'd, but sequence is not module Half_Anon { typedef sequence char_seq_array[14]; typedef sequence bd_ulong_seq_array[17]; typedef sequence ushort_seq_array[12]; typedef sequence bd_ushort_seq_array[11]; }; module All_Anon { // Tests generation of unique template parameter type // names when identical bounded strings are used // repeatedly as parameters and/or return types. interface anon_bd_string_test { const long test_string_size = 25; string TestFunc (); string TestFunc2 (); string TestFunc3 (); string TestFunc23 (); void TestFunc4 (in string inarg); void TestFunc41 (in string inarg); void TestFunc42 (in string inarg); void TestFunc43 (in string inarg); }; // Neither array nor sequence are typedef'd. exception Nested_Anon { sequence float_seq_array[6]; sequence another_fsa[6]; long long_array_1[6]; long long_array_2[6]; }; }; // An anonymous string of the same bound will be found in // another IDL file not included in this one (typedef.idl). // The typecode for the anonymous string should not give us // 'already found' link errors. module Second { typedef string<32> SecondString; };