Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit 0184306

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Add more when tests.
Belonging to [master]: - OpenModelica/OMCompiler#3012 - #1152
1 parent f193e07 commit 0184306

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

flattening/modelica/scodeinst/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,7 @@ WhenClocked1.mo \
825825
WhenClockedElse1.mo \
826826
WhenClockedElse2.mo \
827827
WhenClockedStatement1.mo \
828+
WhenClockedTupleCall1.mo \
828829
WhenIllegalContext1.mo \
829830
WhenIllegalContext2.mo \
830831
WhenIllegalContext3.mo \
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// name: WhenClockedTupleCall1
2+
// keywords:
3+
// status: correct
4+
// cflags: -d=newInst
5+
//
6+
7+
function f
8+
output Real x = 1;
9+
output Real y = 2;
10+
end f;
11+
12+
model WhenClockedTupleCall1
13+
Real x, y;
14+
equation
15+
when Clock() then
16+
(x, y) = f();
17+
end when;
18+
end WhenClockedTupleCall1;
19+
20+
// Result:
21+
// class WhenClockedTupleCall1
22+
// Real x;
23+
// Real y;
24+
// equation
25+
// when Clock() then
26+
// (x, y) = (1.0, 2.0);
27+
// end when;
28+
// end WhenClockedTupleCall1;
29+
// endResult

0 commit comments

Comments
 (0)