LoadedCommand.cxx.in 588 B

1234567891011121314151617181920212223242526272829303132
  1. #include "LoadedCommand.h"
  2. #include <stdio.h>
  3. int testSizeOf(int s1, int s2)
  4. {
  5. return s1 - s2;
  6. }
  7. int main ()
  8. {
  9. int ret = 0;
  10. #if !defined( ADDED_DEFINITION )
  11. printf("Should have ADDED_DEFINITION defined\n");
  12. ret= 1;
  13. #endif
  14. #if !defined(CMAKE_IS_FUN)
  15. printf("Loaded Command was not built with CMAKE_IS_FUN: failed.\n");
  16. ret = 1;
  17. #endif
  18. if(testSizeOf(SIZEOF_CHAR, sizeof(char)))
  19. {
  20. printf("Size of char is broken.\n");
  21. ret = 1;
  22. }
  23. if(testSizeOf(SIZEOF_SHORT, sizeof(short)))
  24. {
  25. printf("Size of short is broken.\n");
  26. ret = 1;
  27. }
  28. return ret;
  29. }