diff options
Diffstat (limited to 'TAO/tests/IDL_Test/constants.idl')
-rw-r--r-- | TAO/tests/IDL_Test/constants.idl | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/TAO/tests/IDL_Test/constants.idl b/TAO/tests/IDL_Test/constants.idl index 4d95752d59e..1d48889517c 100644 --- a/TAO/tests/IDL_Test/constants.idl +++ b/TAO/tests/IDL_Test/constants.idl @@ -9,7 +9,7 @@ // constants.idl // // = DESCRIPTION -// This file contains examples of IDL code that has +// 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. @@ -48,8 +48,6 @@ const char fivebits = '\x32'; const char maybe_minus = '\xAf'; const char max_char_hex = '\xff'; -// const wstring wstr = L"wstr"; - // unsigned longs greater than LONG_MAX const unsigned long in_range = 3222111000; @@ -74,22 +72,22 @@ const unsigned long drink = 1000000000 << 2; // An enum of one type cannot be assigned to an constant of another // enum type, but it's ok if one is a typedef of the other. -module m_a +module m_a { enum enum_a { value_1, value_2, value_3, value_4, value_5 }; }; -module m_b +module m_b { typedef m_a::enum_a enum_b; }; -module problems +module problems { const m_b::enum_b bconst = m_a::value_2; }; -// In a class, string constants cannot be declared inline, but +// In a class, string constants cannot be declared inline, but // arithmetic types can be. module ClassConstants { @@ -97,14 +95,12 @@ module ClassConstants { const long iface_long = 55; const string iface_str = "iface_str"; -// const wstring iface_wstr = L"iface_wstr"; }; - + valuetype Vt { const double vt_long = 66.66; const string vt_str = "vt_str"; -// const wstring vt_wstr = L"vt_wstr"; }; }; |