On 09/05/2015 19:54, Martin Frb wrote:

It does not work for me in units. fpc trunk r30815.

If I copy all the code into the main project, then it works (and I get all the hints, about inlining disabled.).

But the above, stopping with the debugger, and stepping in:
- there is on "call" instruction from "main" to "x1"
- and then there is no further call, the body of this function already has the writeln
yet it should have calls to the other methods.

Ah, it seems to work, if I put the directive after the "interface" line.

Is that documented? Or is that unexpected?
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to