Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Belonging to [master]: - OpenModelica/OMCompiler#2454 - OpenModelica/OpenModelica-testsuite#956
- Loading branch information
1 parent
f0dc635
commit 4a35da1
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// name: DimUnknown8 | ||
// keywords: | ||
// status: correct | ||
// cflags: -d=newInst | ||
// | ||
// | ||
|
||
model A | ||
Real x[:]; | ||
Real y[size(x, 1)]; | ||
end A; | ||
|
||
model DimUnknown8 | ||
A a[2](each x = {1, 2, 3}); | ||
end DimUnknown8; | ||
|
||
// Result: | ||
// class DimUnknown8 | ||
// Real a[1].x[1]; | ||
// Real a[1].x[2]; | ||
// Real a[1].x[3]; | ||
// Real a[1].y[1]; | ||
// Real a[1].y[2]; | ||
// Real a[1].y[3]; | ||
// Real a[2].x[1]; | ||
// Real a[2].x[2]; | ||
// Real a[2].x[3]; | ||
// Real a[2].y[1]; | ||
// Real a[2].y[2]; | ||
// Real a[2].y[3]; | ||
// equation | ||
// a[1].x = {1.0, 2.0, 3.0}; | ||
// a[2].x = {1.0, 2.0, 3.0}; | ||
// end DimUnknown8; | ||
// endResult |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters