fpc/tests/test/tcustomattr2.pp
2019-07-12 22:05:12 +00:00

17 lines
320 B
ObjectPascal

{ %fail }
program tcustomattr2;
{$mode objfpc}{$H+}
{$modeswitch prefixedattributes}
type
// Delphi XE does compile attributes that are not defined, but ignores them.
// That's clearly a Delphi-bug, so fpc should fail on the following:
[TMyAttributeDoesNotExist]
TMyObject = class(TObject)
end;
begin
end.