Loading ATS/05_basic_language_elements/0504_parametrization/050401_formal_parameters/05040101_parameters_of_kind_value/NegSem_05040101_parameters_of_kind_value_008.ttcn +1 −1 Original line number Original line Diff line number Diff line Loading @@ -9,7 +9,7 @@ // Restriction e) // Restriction e) // The expression shall not refer to elements of the component type of the optional runs on clause. // The expression shall not refer to elements of the component type of the optional runs on clause. module NegSem_05040101_parameters_of_kind_value_008 { module NegSem_05040101_parameters_of_kind_value_008 language "TTCN-3:2016" { type component GeneralComp { type component GeneralComp { var integer vc_int := 0; var integer vc_int := 0; } } Loading ATS/05_basic_language_elements/0504_parametrization/050401_formal_parameters/05040102_parameters_of_kind_template/NegSem_05040102_parameters_of_kind_template_008.ttcn +1 −1 Original line number Original line Diff line number Diff line Loading @@ -9,7 +9,7 @@ // Restriction e) // Restriction e) // The template instance shall not refer to elements of the component type in a runs on clause. // The template instance shall not refer to elements of the component type in a runs on clause. module NegSem_05040102_parameters_of_kind_template_008 { module NegSem_05040102_parameters_of_kind_template_008 language "TTCN-3:2016" { type component GeneralComp { type component GeneralComp { var template integer vc_int := ?; var template integer vc_int := ?; } } Loading ATS/05_basic_language_elements/0505_cyclic_definitions/NegSem_0505_cyclic_definitions_002.ttcn +10 −2 Original line number Original line Diff line number Diff line /*************************************************** /*************************************************** ** @author STF 470 ** @author STF 470 (updated by STF 521) ** @version 0.0.1 ** @version 0.0.2 ** @purpose 1:5.5, Verify that an error is detected when a forbidded cyclic reference occurs in cyclic import ** @purpose 1:5.5, Verify that an error is detected when a forbidded cyclic reference occurs in cyclic import ** @verdict pass reject ** @verdict pass reject ***************************************************/ ***************************************************/ Loading @@ -19,6 +19,14 @@ module NegSem_0505_cyclic_definitions_002 { import from NegSem_0505_cyclic_definitions_002_import { const c_test1 } import from NegSem_0505_cyclic_definitions_002_import { const c_test1 } type record ARecordType { integer a, integer b }; type record ARecordType { integer a, integer b }; const ARecordType c_test2 := { 1 , c_test1.b}; // c_test2 refers to c_test1 const ARecordType c_test2 := { 1 , c_test1.b}; // c_test2 refers to c_test1 testcase TC_Sem_0505_cyclic_definitions_005() runs on GeneralComp system GeneralComp { log(c_test2); } control{ execute(TC_Sem_0505_cyclic_definitions_005()); } } } module NegSem_0505_cyclic_definitions_002_import { module NegSem_0505_cyclic_definitions_002_import { Loading ATS/06_types_and_values/0603_type_compatibility/060302_structured_types/NegSem_060302_structured_types_009.ttcn +3 −3 Original line number Original line Diff line number Diff line /*************************************************** /*************************************************** ** @author STF 409 ** @author STF 409 (updated by STF 521) ** @version 0.0.1 ** @version 0.0.2 ** @purpose 1:6.3.2, Ensure that the IUT rejects assignments from incompatible types or type ranges ** @purpose 1:6.3.2, Ensure that the IUT rejects assignments from incompatible types or type ranges ** @verdict pass reject ** @verdict pass reject ***************************************************/ ***************************************************/ module NegSem_060302_structured_types_009 { module NegSem_060302_structured_types_009 language "TTCN-3:2016"{ type enumerated EnumeratedType {e_black, e_white}; type enumerated EnumeratedType {e_black, e_white}; type enumerated EnumeratedRedefinition {e_black, e_white}; type enumerated EnumeratedRedefinition {e_black, e_white}; Loading ATS/08_modules/0802_module_definitions_part/080203_importing_from_modules/08020301_general_format_of_import/NegSem_08020301_GeneralFormatOfImport_002.ttcn +3 −3 Original line number Original line Diff line number Diff line /***************************************************************** /***************************************************************** ** @author STF 433 ** @author STF 433 (updated by STF 521) ** @version 0.0.1 ** @version 0.0.2 ** @purpose 1:8.2.3.1, Ensure that name handling of imported enumerations is properly handled ** @purpose 1:8.2.3.1, Ensure that name handling of imported enumerations is properly handled ** @verdict pass reject ** @verdict pass reject *****************************************************************/ *****************************************************************/ module NegSem_08020301_GeneralFormatOfImport_002 { module NegSem_08020301_GeneralFormatOfImport_002 language "TTCN-3:2016"{ import from NegSem_08020301_GeneralFormatOfImport_002_import all; import from NegSem_08020301_GeneralFormatOfImport_002_import all; const EnumType2 c_enum := enumX; const EnumType2 c_enum := enumX; Loading Loading
ATS/05_basic_language_elements/0504_parametrization/050401_formal_parameters/05040101_parameters_of_kind_value/NegSem_05040101_parameters_of_kind_value_008.ttcn +1 −1 Original line number Original line Diff line number Diff line Loading @@ -9,7 +9,7 @@ // Restriction e) // Restriction e) // The expression shall not refer to elements of the component type of the optional runs on clause. // The expression shall not refer to elements of the component type of the optional runs on clause. module NegSem_05040101_parameters_of_kind_value_008 { module NegSem_05040101_parameters_of_kind_value_008 language "TTCN-3:2016" { type component GeneralComp { type component GeneralComp { var integer vc_int := 0; var integer vc_int := 0; } } Loading
ATS/05_basic_language_elements/0504_parametrization/050401_formal_parameters/05040102_parameters_of_kind_template/NegSem_05040102_parameters_of_kind_template_008.ttcn +1 −1 Original line number Original line Diff line number Diff line Loading @@ -9,7 +9,7 @@ // Restriction e) // Restriction e) // The template instance shall not refer to elements of the component type in a runs on clause. // The template instance shall not refer to elements of the component type in a runs on clause. module NegSem_05040102_parameters_of_kind_template_008 { module NegSem_05040102_parameters_of_kind_template_008 language "TTCN-3:2016" { type component GeneralComp { type component GeneralComp { var template integer vc_int := ?; var template integer vc_int := ?; } } Loading
ATS/05_basic_language_elements/0505_cyclic_definitions/NegSem_0505_cyclic_definitions_002.ttcn +10 −2 Original line number Original line Diff line number Diff line /*************************************************** /*************************************************** ** @author STF 470 ** @author STF 470 (updated by STF 521) ** @version 0.0.1 ** @version 0.0.2 ** @purpose 1:5.5, Verify that an error is detected when a forbidded cyclic reference occurs in cyclic import ** @purpose 1:5.5, Verify that an error is detected when a forbidded cyclic reference occurs in cyclic import ** @verdict pass reject ** @verdict pass reject ***************************************************/ ***************************************************/ Loading @@ -19,6 +19,14 @@ module NegSem_0505_cyclic_definitions_002 { import from NegSem_0505_cyclic_definitions_002_import { const c_test1 } import from NegSem_0505_cyclic_definitions_002_import { const c_test1 } type record ARecordType { integer a, integer b }; type record ARecordType { integer a, integer b }; const ARecordType c_test2 := { 1 , c_test1.b}; // c_test2 refers to c_test1 const ARecordType c_test2 := { 1 , c_test1.b}; // c_test2 refers to c_test1 testcase TC_Sem_0505_cyclic_definitions_005() runs on GeneralComp system GeneralComp { log(c_test2); } control{ execute(TC_Sem_0505_cyclic_definitions_005()); } } } module NegSem_0505_cyclic_definitions_002_import { module NegSem_0505_cyclic_definitions_002_import { Loading
ATS/06_types_and_values/0603_type_compatibility/060302_structured_types/NegSem_060302_structured_types_009.ttcn +3 −3 Original line number Original line Diff line number Diff line /*************************************************** /*************************************************** ** @author STF 409 ** @author STF 409 (updated by STF 521) ** @version 0.0.1 ** @version 0.0.2 ** @purpose 1:6.3.2, Ensure that the IUT rejects assignments from incompatible types or type ranges ** @purpose 1:6.3.2, Ensure that the IUT rejects assignments from incompatible types or type ranges ** @verdict pass reject ** @verdict pass reject ***************************************************/ ***************************************************/ module NegSem_060302_structured_types_009 { module NegSem_060302_structured_types_009 language "TTCN-3:2016"{ type enumerated EnumeratedType {e_black, e_white}; type enumerated EnumeratedType {e_black, e_white}; type enumerated EnumeratedRedefinition {e_black, e_white}; type enumerated EnumeratedRedefinition {e_black, e_white}; Loading
ATS/08_modules/0802_module_definitions_part/080203_importing_from_modules/08020301_general_format_of_import/NegSem_08020301_GeneralFormatOfImport_002.ttcn +3 −3 Original line number Original line Diff line number Diff line /***************************************************************** /***************************************************************** ** @author STF 433 ** @author STF 433 (updated by STF 521) ** @version 0.0.1 ** @version 0.0.2 ** @purpose 1:8.2.3.1, Ensure that name handling of imported enumerations is properly handled ** @purpose 1:8.2.3.1, Ensure that name handling of imported enumerations is properly handled ** @verdict pass reject ** @verdict pass reject *****************************************************************/ *****************************************************************/ module NegSem_08020301_GeneralFormatOfImport_002 { module NegSem_08020301_GeneralFormatOfImport_002 language "TTCN-3:2016"{ import from NegSem_08020301_GeneralFormatOfImport_002_import all; import from NegSem_08020301_GeneralFormatOfImport_002_import all; const EnumType2 c_enum := enumX; const EnumType2 c_enum := enumX; Loading