Skip to content

Commit

Permalink
Updated scodeinst tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jun 19, 2017
1 parent 01d38b7 commit 225b295
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/Makefile
Expand Up @@ -166,6 +166,7 @@ redeclare12.mo \
redeclare13.mo \
redeclare2.mo \
redeclare6.mo \
Subscript1.mo \
type2.mo \
usertype1.mo \
usertype2.mo \
Expand Down
19 changes: 19 additions & 0 deletions flattening/modelica/scodeinst/Subscript1.mo
@@ -0,0 +1,19 @@
// name: Subscript1.mo
// status: correct
// cflags: -d=newInst
//
//

model Subscript1
Real x[3] = {1, 2, 3};
Real y = x[2];
end Subscript1;

// Result:
// class Subscript1
// Real x[1] = 1;
// Real x[2] = 2;
// Real x[3] = 3;
// Real y = x[2];
// end Subscript1;
// endResult

0 comments on commit 225b295

Please sign in to comment.