Skip to content

Commit

Permalink
[NF] Add builtin attribute test.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed May 22, 2018
1 parent 3c4e9ad commit f0dc635
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions flattening/modelica/scodeinst/BuiltinAttribute19.mo
@@ -0,0 +1,24 @@
// name: BuiltinAttribute19
// keywords:
// status: correct
// cflags: -d=newInst
//

model A
Real x[3](start = {1, 2, 3});
end A;

model BuiltinAttribute19
A a[2];
end BuiltinAttribute19;

// Result:
// class BuiltinAttribute19
// Real a[1].x[1](start = 1.0);
// Real a[1].x[2](start = 2.0);
// Real a[1].x[3](start = 3.0);
// Real a[2].x[1](start = 1.0);
// Real a[2].x[2](start = 2.0);
// Real a[2].x[3](start = 3.0);
// end BuiltinAttribute19;
// endResult
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/Makefile
Expand Up @@ -42,6 +42,7 @@ BuiltinAttribute15.mo \
BuiltinAttribute16.mo \
BuiltinAttribute17.mo \
BuiltinAttribute18.mo \
BuiltinAttribute19.mo \
BuiltinLookup1.mo \
BuiltinTime.mo \
BuiltinTimeSubscripted.mo \
Expand Down

0 comments on commit f0dc635

Please sign in to comment.