Ticket #3446: impure.mo

File impure.mo, 460 bytes (added by anonymous, 9 years ago)
Line 
1impure function func
2//function func
3  input String name;
4  output String out;
5algorithm
6  out := name + ".ext";
7end func;
8
9block Impure
10  Modelica.Blocks.Sources.CombiTimeTable tab(fileName=func("file"),
11    tableName="tab", tableOnFile=true);
12end Impure;
13
14// When impure the C code somehow thinks that we are trying to give it a usertab,
15// which is not implemented in OpenModelica
16// Looking at the source it is likely that somehow the C code is getting "NoName"