Commit 66c945ea authored by Matthias Simon's avatar Matthias Simon
Browse files

Merge branch 'v15-unvalidated-nokia' into 'v15-unvalidated'

V15 unvalidated Nokia

See merge request !5
parents 8c3ac5b2 b60dac04
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@ stages:
  - package
  - deploy

default:
  image: alpine
  before_script:
    - apk add bash git

+20 −0
Original line number Diff line number Diff line
// @author   TTF T023
// @purpose  1:5.4.1.1, Ensure formal parameters accept nested types.
// @verdict  pass accept
module Sem_05040101_nested_types_001 {

type component GeneralComp {}

function f(in record of integer n) {
	setverdict(pass);
}

testcase TC_Sem_05040101_nested_types_001() runs on GeneralComp {
	f({1, 2, 3, 4});
}

control {
	execute(TC_Sem_05040101_nested_types_001());
}

}
+20 −0
Original line number Diff line number Diff line
// @author   TTF T023
// @purpose  1:5.4.1.2, Ensure formal parameters accept nested types.
// @verdict  pass accept
module Sem_05040102_nested_types_001 {

type component GeneralComp {}

function f(template record of integer n) {
	setverdict(pass);
}

testcase TC_Sem_05040102_nested_types_001() runs on GeneralComp {
	f({1, ?, 3});
}

control {
	execute(TC_Sem_05040102_nested_types_001());
}

}
+8 −0
Original line number Diff line number Diff line
// @author   TTF T023
// @purpose  1:5.4.3, Ensure variadic formal parameters are at the end of the formal parameter list.
// @verdict  pass reject
module NegSem_050403_variadic_parameters_001 {

function f(in integer i..., in integer max) {}

}
+8 −0
Original line number Diff line number Diff line
// @author   TTF T023
// @purpose  1:5.4.3, Ensure only one variadic formal parameter per formal parameter list is allowed.
// @verdict  pass reject
module NegSem_050403_variadic_parameters_002 {

function f(in integer a..., in integer b...) {}

}
Loading