fpc/tests/test/jvm/tassert.pp
Jonas Maebe 85ef5e109c + assert() support for the JVM target (currently ignores the Java classloader
assertionStatus setting)

git-svn-id: branches/jvmbackend@20388 -
2012-02-20 11:28:59 +00:00

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.