fpc/tests/tbs/tb0585.pp
svenbarth f746d9603a * m68k/n68kadd.pas, t68kaddnode.second_cmpsmallset:
respect more location combinations than just LOC_CONSTANT and LOC_REGISTER
* added test

git-svn-id: trunk@22786 -
2012-10-20 19:39:29 +00:00

28 lines
514 B
ObjectPascal

{ %NORUN }
program tb0585;
{$mode objfpc}
type
tobjectoptions = set of (oo_is_external, oo_is_forward, oo_is_formal);
tobjectdef = class
objectoptions: tobjectoptions;
end;
procedure finalize_class_external_status(od: tobjectdef);
begin
if [oo_is_external,oo_is_forward] <= od.objectoptions then
begin
{ formal definition: x = objcclass external; }
exclude(od.objectoptions,oo_is_forward);
include(od.objectoptions,oo_is_formal);
end;
end;
begin
end.