Ticket #4211: TestDuplicateFunction.mo

File TestDuplicateFunction.mo, 314 bytes (added by casella, 8 years ago)

Test package .mo file

Line 
1package TestDuplicateFunction
2  function f
3    input Real x;
4    output Real y;
5  algorithm
6    y := x;
7  end f;
8 
9  function f
10    input Real x;
11    input Real z;
12    output Real y;
13  algorithm
14    y := x+z;
15  end f;
16
17  model Test
18    Real r = f(time);
19  end Test;
20end TestDuplicateFunction;