Skip to content

Commit

Permalink
[NF] Add -d=evaluateAllParameters test.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Nov 1, 2018
1 parent fb27486 commit ec5dfe9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions flattening/modelica/scodeinst/EvaluateAllParams.mo
@@ -0,0 +1,21 @@
// name: EvaluateAllParams
// keywords:
// status: correct
// cflags: -d=newInst,evaluateAllParameters
//

model EvaluateAllParams
parameter Real p = 10;
Real x;
equation
x = time * p;
end EvaluateAllParams;

// Result:
// class EvaluateAllParams
// parameter Real p = 10.0;
// Real x;
// equation
// x = time * 10.0;
// end EvaluateAllParams;
// endResult
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/Makefile
Expand Up @@ -317,6 +317,7 @@ eq8.mo \
eq10.mo \
EqualityConstraint1.mo \
EquationInvalidType1.mo \
EvaluateAllParams.mo \
Extends1.mo \
Extends2.mo \
Extends3.mo \
Expand Down

0 comments on commit ec5dfe9

Please sign in to comment.