home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d167 / cdecl.lha / CDecl / testset < prev    next >
Text File  |  1988-11-22  |  1KB  |  33 lines

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