Skip to content

Commit

Permalink
[NF] Add nested 'end' test.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jun 1, 2018
1 parent 0b2fd73 commit 61b0427
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions flattening/modelica/scodeinst/End5.mo
@@ -0,0 +1,34 @@
// name: End5
// keywords:
// status: correct
// cflags: -d=newInst
//
//

model End5
Real x[4, 3];
Integer y[2];
equation
x[y[end], end] = time;
end End5;

// Result:
// class End5
// Real x[1,1];
// Real x[1,2];
// Real x[1,3];
// Real x[2,1];
// Real x[2,2];
// Real x[2,3];
// Real x[3,1];
// Real x[3,2];
// Real x[3,3];
// Real x[4,1];
// Real x[4,2];
// Real x[4,3];
// Integer y[1];
// Integer y[2];
// equation
// x[y[2],3] = time;
// end End5;
// endResult
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/Makefile
Expand Up @@ -264,6 +264,7 @@ End1.mo \
End2.mo \
End3.mo \
End4.mo \
End5.mo \
EndInvalid1.mo \
EndInvalid2.mo \
enum1.mo \
Expand Down

0 comments on commit 61b0427

Please sign in to comment.