File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed
flattening/modelica/scodeinst Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -742,6 +742,7 @@ Terminate1.mo \
742742TerminateInvalid1.mo \
743743TerminateInvalid2.mo \
744744TestSampleNoClock.mos \
745+ Ticket5249.mo \
745746Time1.mo \
746747Time2.mo \
747748Time3.mo \
Original file line number Diff line number Diff line change 1+ // name: Ticket5249.mo
2+ // keywords: tests if array binding works fine
3+ // status: correct
4+ //
5+ // cflags: -d=newInst
6+ //
7+
8+ model M
9+
10+ record X
11+ Real a;
12+ Real b;
13+ end X;
14+ constant Integer n = 2 ;
15+ X x[n] = {X(1 , 2 ), X(2 , 3 )};
16+
17+ model H
18+ X x;
19+ end H;
20+
21+ H h[n](x = x);
22+ end M;
23+
24+ // Result:
25+ // class M
26+ // constant Integer n = 2;
27+ // Real x[1].a = 1.0;
28+ // Real x[1].b = 2.0;
29+ // Real x[2].a = 2.0;
30+ // Real x[2].b = 3.0;
31+ // Real h[1].x.a = x[1].a;
32+ // Real h[1].x.b = x[1].b;
33+ // Real h[2].x.a = x[2].a;
34+ // Real h[2].x.b = x[2].b;
35+ // end M;
36+ // endResult
Original file line number Diff line number Diff line change 8686 print (" -cppruntime Run ONLY the slow cppruntime tests.\n " );
8787 print (" -nocpp Do not run any cppruntime tests.\n " );
8888 print (" -f Only run fast tests.\n " );
89- print (" -file Reads testcases from the given file instead of from a makefile.\n " );
89+ print (" -file=file Reads testcases from the given file instead of from a makefile.\n " );
9090 print (" -jN Use N threads.\n " );
9191 print (" -nodb Don't store timing data.\n " );
9292 print (" -nosavedb Don't overwrite stored timing data.\n " );
You can’t perform that action at this time.
0 commit comments