Skip to content

Commit beccd0c

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Add test for #3518
1 parent 592a3fb commit beccd0c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

flattening/modelica/arrays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ InOutArray.mo \
121121
Matrix.mo \
122122
Matrix1.mo \
123123
Matrix2.mo \
124+
Matrix3.mo \
124125
MatrixAddition.mo \
125126
MatrixBrackets.mo \
126127
MatrixEquation.mo \
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// status: correct
2+
// ticket #3518
3+
4+
model Matrix3
5+
Boolean b = false;
6+
constant Integer n = 2;
7+
Boolean[:,:] vecB = [fill(true,n-1);b];
8+
end Matrix3;
9+
10+
// Result:
11+
// class Matrix3
12+
// Boolean b = false;
13+
// constant Integer n = 2;
14+
// Boolean vecB[1,1];
15+
// Boolean vecB[2,1];
16+
// equation
17+
// vecB = {{true}, {b}};
18+
// end Matrix3;
19+
// endResult

0 commit comments

Comments
 (0)