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#2453 - OpenModelica/OpenModelica-testsuite#955
- Loading branch information
1 parent
3c4e9ad
commit f0dc635
Showing
2 changed files
with
25 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,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 |
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