2002-09-20 17:17:59 +00:00
|
|
|
#include "LoadedCommand.h"
|
2002-12-05 16:55:53 +00:00
|
|
|
#include <stdio.h>
|
2002-09-20 17:17:59 +00:00
|
|
|
|
2004-10-25 19:08:05 +00:00
|
|
|
int testSizeOf(int s1, int s2)
|
|
|
|
{
|
|
|
|
return s1 - s2;
|
|
|
|
}
|
|
|
|
|
2002-09-16 20:27:00 +00:00
|
|
|
int main ()
|
|
|
|
{
|
2004-10-25 19:08:05 +00:00
|
|
|
int ret = 0;
|
2002-12-05 16:55:53 +00:00
|
|
|
|
2003-07-22 16:21:15 +00:00
|
|
|
#if !defined( ADDED_DEFINITION )
|
|
|
|
printf("Should have ADDED_DEFINITION defined\n");
|
2004-10-25 19:08:05 +00:00
|
|
|
ret= 1;
|
|
|
|
#endif
|
|
|
|
#if !defined(CMAKE_IS_FUN)
|
|
|
|
printf("Loaded Command was not built with CMAKE_IS_FUN: failed.\n");
|
|
|
|
ret = 1;
|
2003-07-22 16:21:15 +00:00
|
|
|
#endif
|
2004-10-25 19:08:05 +00:00
|
|
|
if(testSizeOf(SIZEOF_CHAR, sizeof(char)))
|
2004-10-25 15:59:50 +00:00
|
|
|
{
|
2004-10-25 19:08:05 +00:00
|
|
|
printf("Size of char is broken.\n");
|
|
|
|
ret = 1;
|
2004-10-25 15:59:50 +00:00
|
|
|
}
|
2004-10-25 19:08:05 +00:00
|
|
|
if(testSizeOf(SIZEOF_SHORT, sizeof(short)))
|
|
|
|
{
|
|
|
|
printf("Size of short is broken.\n");
|
|
|
|
ret = 1;
|
|
|
|
}
|
|
|
|
return ret;
|
2002-09-16 20:27:00 +00:00
|
|
|
}
|