tobjc3.pp 404 B

1234567891011121314151617181920212223242526
  1. { %fail }
  2. { %opt=-vh -Seh }
  3. { %target=darwin }
  4. { %cpu=powerpc,i386 }
  5. {$modeswitch objectivec1}
  6. type
  7. { should produce a hint that ta does not automatically derive from any
  8. other class }
  9. ta = objcclass
  10. end; external;
  11. var
  12. a: ta;
  13. b: nsobject;
  14. c: id;
  15. begin
  16. { avoid hints about unused types/variables/units }
  17. a:=nil;
  18. if (a<>nil) then
  19. exit;
  20. c:=nil;
  21. b:=c;
  22. b.isEqual_(b);
  23. end.