Skip to content

Commit

Permalink
[NF] Add record binding test.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Oct 17, 2018
1 parent 9f2d99a commit 4654c86
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/Makefile
Expand Up @@ -641,6 +641,7 @@ RealRangeBinding1.mo \
RecordBinding1.mo \
RecordBinding2.mo \
RecordBinding3.mo \
RecordBinding4.mo \
RecursiveExtends1.mo \
RecursiveExtends3.mo \
RedeclareClass1.mo \
Expand Down
24 changes: 24 additions & 0 deletions flattening/modelica/scodeinst/RecordBinding4.mo
@@ -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

0 comments on commit 4654c86

Please sign in to comment.