typealias-inline-udt-decl.azsl 477 B

123456789101112
  1. // verify that inline declarations of new user defined type, within the typealias statement, are possible.
  2. typealias NewStruct = struct S {};
  3. __azslc_print_message("@check predicate ");
  4. __azslc_print_symbol(typeof(NewStruct), __azslc_prtsym_fully_qualified);
  5. __azslc_print_message(" == '/S'\n");
  6. typedef struct S2 {} NewS2;
  7. __azslc_print_message("@check predicate ");
  8. __azslc_print_symbol(typeof(NewS2), __azslc_prtsym_fully_qualified);
  9. __azslc_print_message(" == '/S2'\n");