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#2727 - OpenModelica/OpenModelica-testsuite#1053
- Loading branch information
1 parent
9f2d99a
commit 4654c86
Showing
2 changed files
with
25 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,24 @@ | ||
// name: RecordBinding4 | ||
// keywords: | ||
// status: correct | ||
// cflags: -d=newInst | ||
// | ||
|
||
record R | ||
Real x; | ||
Real y; | ||
end R; | ||
|
||
model RecordBinding4 | ||
parameter R r1; | ||
parameter R r2 = r1; | ||
end RecordBinding4; | ||
|
||
// Result: | ||
// class RecordBinding4 | ||
// parameter Real r1.x; | ||
// parameter Real r1.y; | ||
// parameter Real r2.x = r1.x; | ||
// parameter Real r2.y = r1.y; | ||
// end RecordBinding4; | ||
// endResult |