tlowercaseproc.pp 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {$namespace org.freepascal.test.lcproc}
  2. unit tlowercaseproc;
  3. {$mode delphi}
  4. {$targetswitch lowercaseprocstart}
  5. interface
  6. procedure DoIt;
  7. type
  8. tc = class
  9. procedure MethodName;
  10. class procedure ClassMethodName; static;
  11. procedure XToY; // should become xToY
  12. procedure PREFIXThingToTest; // should become prefixThingToTest
  13. procedure RC64Encode; // should become rc64Encode;
  14. end;
  15. implementation
  16. procedure DoIt;
  17. var
  18. a: ansistringclass;
  19. begin
  20. { this routine is declared with uppercase C at the start in the system unit,
  21. check that we don't lowercase this one as well }
  22. a:=AnsistringClass(AnsistringClass.CreateFromLiteralStringBytes('abcdef',DefaultSystemCodePage));
  23. end;
  24. procedure tc.MethodName;
  25. begin
  26. doit;
  27. classmethodname;
  28. end;
  29. class procedure tc.ClassMethodName; static;
  30. begin
  31. doit;
  32. end;
  33. procedure tc.xtoy;
  34. begin
  35. end;
  36. procedure tc.PREFIXThingToTest;
  37. begin
  38. end;
  39. procedure tc.RC64Encode;
  40. begin
  41. end;
  42. end.