tests/syntax/enumeration/enumerationvalue.txt
author Mario de Sousa <msousa@fe.up.pt>
Tue, 13 Nov 2012 18:03:17 +0000
changeset 726 9b61eb4f00dc
parent 109 3af0b849b9c6
permissions -rwxr-xr-x
Change the base datatype of enumerations to an enumerated_type_declaration_c (for named types!)



TYPE
 enum_type00 : (enum_v1, XXXX, enum_v2) := XXXX;
END_TYPE

TYPE
 enum_type01 : (XXXX, enum_v2) := XXXX;
END_TYPE

TYPE
 enum_type02 : (enum_v1, XXXX) := XXXX;
END_TYPE

TYPE
 enum_type03 : (XXXX) := XXXX;
END_TYPE




function foo : int
 var_input
  a_1, b_1: int;
 end_var
 var
  c_1, d_1: enum_type00;
(*
  enum_v1 : enum_type00;
*)
 end_var
  c_1 := enum_type00#XXXX;
  c_1 := XXXX;
  c_1 := enum_v1;
(*
  enum_v1 := enum_v1;
*)
end_function