mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 01:09:27 +02:00
18 lines
193 B
ObjectPascal
18 lines
193 B
ObjectPascal
program tassert;
|
|
|
|
{$mode objfpc}
|
|
|
|
var
|
|
b: byte;
|
|
caught: boolean;
|
|
begin
|
|
caught:=false;
|
|
try
|
|
assert(b=1,'yow');
|
|
except
|
|
caught:=true;
|
|
end;
|
|
if not caught then
|
|
halt(1);
|
|
end.
|