mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 19:08:07 +02:00
17 lines
320 B
ObjectPascal
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.
|
|
|