LoadedCommand.cxx.in 769 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #ifdef HAVE_VSBLABLA
  11. printf("Should not be able to find vsblabla\n");
  12. ret = 1;
  13. #endif
  14. #if !defined( HAVE_PRINTF )
  15. printf("Should be able to find printf\n");
  16. ret= 1;
  17. #endif
  18. #if !defined( ADDED_DEFINITION )
  19. printf("Should have ADDED_DEFINITION defined\n");
  20. ret= 1;
  21. #endif
  22. #if !defined(CMAKE_IS_FUN)
  23. printf("Loaded Command was not built with CMAKE_IS_FUN: failed.\n");
  24. ret = 1;
  25. #endif
  26. if(testSizeOf(SIZEOF_CHAR, sizeof(char)))
  27. {
  28. printf("Size of char is broken.\n");
  29. ret = 1;
  30. }
  31. if(testSizeOf(SIZEOF_SHORT, sizeof(short)))
  32. {
  33. printf("Size of short is broken.\n");
  34. ret = 1;
  35. }
  36. return ret;
  37. }