Skip to content

Commit

Permalink
[NF] Add reduction subscripting test.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Apr 24, 2018
1 parent 81d5698 commit 0db66a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/Makefile
Expand Up @@ -599,6 +599,7 @@ SubscriptCevalSlice2.mo \
SubscriptCevalWhole1.mo \
SubscriptEnum1.mo \
SubscriptIterator1.mo \
SubscriptReduction1.mo \
SubscriptTooMany1.mo \
SubscriptTypename1.mo \
SubscriptWrongType1.mo \
Expand Down
17 changes: 17 additions & 0 deletions flattening/modelica/scodeinst/SubscriptReduction1.mo
@@ -0,0 +1,17 @@
// name: SubscriptReduction1
// status: correct
// cflags: -d=newInst
//
//

model SubscriptReduction1
parameter String s[:] = {String(i) for i in 1:3};
end SubscriptReduction1;

// Result:
// class SubscriptReduction1
// parameter String s[1] = String(1, 0, true);
// parameter String s[2] = String(2, 0, true);
// parameter String s[3] = String(3, 0, true);
// end SubscriptReduction1;
// endResult

0 comments on commit 0db66a6

Please sign in to comment.