home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 182.lha / CDecl_v2.4 / testset++ < prev   
Text File  |  1988-11-05  |  1KB  |  40 lines

  1. help
  2. set options
  3. # test some declarations
  4. declare x as ptr to character
  5. declare x as reference to character
  6. declare foo as pointer to member of class X int
  7. declare foo as pointer to member of class X function (arg1, arg2) returning pointer to class Y
  8. declare x as func(w as ptr to char, y as int) ret ptr to int
  9. declare x as func(ptr to char) ret ptr to int
  10. declare x as func(int) ret ptr to int
  11. declare x as func(ptr to char, int) ret ptr to int
  12. declare x as function (args) returning pointer to int
  13. # test some explain functions
  14. explain char *x
  15. explain int X::*foo
  16. explain class Y *(X::*foo)(arg1, arg2)
  17. explain int *x()
  18. explain int *x(args)
  19. explain int *x(char *)
  20. explain int *x(char *, int )
  21. explain int *x(char *, int, float)
  22. explain int *x(int )
  23. # test some casts
  24. cast x into ptr to char
  25. cast x into ptr to member of class X int
  26. cast x into ptr to func ret int
  27. cast x into ptr to func() ret int
  28. cast x into ptr to func(args) ret int
  29. cast x into ptr to func(x as ptr to char, y as int) ret int
  30. cast x into ptr to func(ptr to char) ret int
  31. cast x into ptr to func(ptr to char, int) ret int
  32. cast x into ptr to func(ptr to char, int, float) ret int
  33. # test explaining some casts
  34. explain (char *)x
  35. explain (int X::*)x
  36. explain (int (*)())x
  37. explain (int (*)(char *))x
  38. explain (int (*)(char *, int))x
  39. explain (int (*)(char *, int, float))x
  40.