tw32075.pp 625 B

1234567891011121314151617181920
  1. { %fail }
  2. program compilercrash;
  3. // This code is nonsense a.t.m. but it crashes the compiler.
  4. {$mode objfpc}
  5. uses classes;
  6. type
  7. {$M+}
  8. Tmyclass = class(Tpersistent)
  9. private
  10. FDetachable:Boolean;
  11. procedure setdetachable(const aValue:Boolean);
  12. public
  13. property Detachable: Boolean read FDetachable write SetDetachable
  14. ['widgetsets:qt,gtk,win32', 'implementor:Vasya Pupkin', 'creation-date:01.01.2007'];
  15. end;
  16. begin
  17. { the initial purpose of this test was that the compiler shouldn't crash on the attribute above,
  18. however, as soon as attributes are implemented, it will succeed, so cause always an error at the end }
  19. end;