Skip to content

Commit

Permalink
Adapt nameClashTest to improved treatment of Modelica names
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Jan 30, 2017
1 parent 7f06960 commit aac242c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions openmodelica/cppruntime/nameClashTest.mos
Expand Up @@ -10,9 +10,13 @@ loadString("
package NameClash
function f
input Real simTime;
output Real mydouble = simTime; // fixme: double does not work in functions!
output Integer int = integer(simTime);
output String string = String(simTime);
output Real double;
output Integer int;
output String string;
algorithm
double := simTime;
int := integer(simTime);
string := String(simTime);
end f;
model Test
Real simTime = time;
Expand Down

0 comments on commit aac242c

Please sign in to comment.