Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Belonging to [master]: - OpenModelica/OMCompiler#3012 - OpenModelica/OpenModelica-testsuite#1152
- Loading branch information
1 parent
f193e07
commit 0184306
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// name: WhenClockedTupleCall1 | ||
// keywords: | ||
// status: correct | ||
// cflags: -d=newInst | ||
// | ||
|
||
function f | ||
output Real x = 1; | ||
output Real y = 2; | ||
end f; | ||
|
||
model WhenClockedTupleCall1 | ||
Real x, y; | ||
equation | ||
when Clock() then | ||
(x, y) = f(); | ||
end when; | ||
end WhenClockedTupleCall1; | ||
|
||
// Result: | ||
// class WhenClockedTupleCall1 | ||
// Real x; | ||
// Real y; | ||
// equation | ||
// when Clock() then | ||
// (x, y) = (1.0, 2.0); | ||
// end when; | ||
// end WhenClockedTupleCall1; | ||
// endResult |