Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / AST_Unit_Tests / AST_Unit_Tests.cpp
blob33ac27086d668405e747d0f19a7b469866c8e367
1 #include "../Sequence_Unit_Tests/test_macros.h"
3 #include <ast_fixed.h>
4 #include <ast_typedef.h>
5 #include <fe_extern.h>
6 #include <utl_identifier.h>
8 #include <cstdlib>
10 int test_fixed_typedef ()
12 Identifier id_fixed ("fixed");
13 UTL_ScopedName name_fixed (&id_fixed, 0);
14 AST_Expression digits (22), scale (2);
15 AST_Fixed fixed (&name_fixed, &digits, &scale);
17 Identifier id_typedef ("Myfixed");
18 UTL_ScopedName name_typedef (&id_typedef, 0);
19 AST_Typedef td (&fixed, &name_typedef, false, false);
20 CHECK (td.owns_base_type ());
21 return EXIT_SUCCESS;
24 int ACE_TMAIN (int, ACE_TCHAR *[])
26 FE_init ();
27 int status = EXIT_SUCCESS;
28 status += test_fixed_typedef ();
29 return status;