fpc/tests/test/tunit1.pp
2017-11-19 18:05:16 +00:00

14 lines
319 B
ObjectPascal

{$ifdef CPUAVR}
{ avr uses instruction based init/finalization of units: this does not work if an error happens during finalization,
it results in an endless loop, so skip this test for avr }
begin
end.
{$else CPUAVR}
uses
erroru,uunit1;
begin
if testvar<>1234567 then
do_error(1000);
end.
{$endif CPUAVR}