fpc/tests/tbf/tb0210.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

18 lines
261 B
ObjectPascal

{ %fail }
// check whether enums can NOT be casted to object references; this
// should NOT work in objfpc mode (see also tbs/tb0554.pp)
{$mode objfpc}
{$packenum 2}
type
TEnum = (a, b, c);
var
e : TEnum;
o : TObject;
begin
o := TObject(e);
end.