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#2240 - OpenModelica/OpenModelica-testsuite#863
- Loading branch information
1 parent
cd5cd60
commit 77367d9
Showing
2 changed files
with
24 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,23 @@ | ||
// status: correct | ||
// cflags: -d=newInst | ||
|
||
model Concatenation | ||
Real z[1,2] = [{{2}},{1.0}]; | ||
Real z1[2,1,1] = [{{{2}}};{1.0}]; | ||
Real r[2] = cat(1, {1}, {2}); | ||
end Concatenation; | ||
|
||
// Result: | ||
// class Concatenation | ||
// Real z[1,1]; | ||
// Real z[1,2]; | ||
// Real z1[1,1,1]; | ||
// Real z1[2,1,1]; | ||
// Real r[1]; | ||
// Real r[2]; | ||
// equation | ||
// z = cat(2, {{2.0}}, promote({1.0}, 2)); | ||
// z1 = cat(1, /*Real[1, 1, 1]*/(promote({{{2}}}, 3)), promote({1.0}, 3)); | ||
// r = /*Real[2]*/(cat(1, {1}, {2})); | ||
// end Concatenation; | ||
// 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