fpc/tests/tbf/tb0211.pp
Jonas Maebe ea356808b1 * tests have to fail
* "fixed" tests so they also fail on 32 bit platforms

git-svn-id: trunk@13149 -
2009-05-16 10:30:28 +00:00

14 lines
220 B
ObjectPascal

{ %fail }
// check whether integers can NOT be casted to object references; this
// should NOT work in objfpc mode (see also tbs/tb0554.pp)
{$mode objfpc}
var
i : Word;
o : TObject;
begin
o := TObject(i);
end.