<p>Am 09.05.2015 21:01 schrieb "Martin Frb" <<a href="mailto:lazarus@mfriebe.de">lazarus@mfriebe.de</a>>:<br>
><br>
> On 09/05/2015 19:54, Martin Frb wrote:<br>
>><br>
>><br>
>> It does not work for me in units. fpc trunk r30815.<br>
>><br>
>> If I copy all the code into the main project, then it works (and I get all the hints, about inlining disabled.).<br>
>><br>
>> But the above, stopping with the debugger, and stepping in:<br>
>> - there is on "call" instruction from "main" to "x1"<br>
>> - and then there is no further call, the body of this function already has the writeln<br>
>> yet it should have calls to the other methods.<br>
>><br>
> Ah, it seems to work, if I put the directive after the "interface" line.<br>
><br>
> Is that documented? Or is that unexpected?</p>
<p>I'd say that's unexpected.</p>
<p>Regards,<br>
Sven</p>