STYLE: Nightly Version update
[cmake.git] / Tests / LoadCommandOneConfig / LoadedCommand.cxx
blobc58bcf15315fb5fabcca5d67f93631ff6f6afc87
1 #include "LoadedCommand.h"
2 #include <stdio.h>
4 int testSizeOf(int s1, int s2)
6 return s1 - s2;
9 int main ()
11 int ret = 0;
12 #ifdef HAVE_VSBLABLA
13 printf("Should not be able to find vsblabla\n");
14 ret = 1;
15 #endif
17 #if !defined( HAVE_PRINTF )
18 printf("Should be able to find printf\n");
19 ret= 1;
20 #endif
22 #if !defined( ADDED_DEFINITION )
23 printf("Should have ADDED_DEFINITION defined\n");
24 ret= 1;
25 #endif
26 #if !defined(CMAKE_IS_FUN)
27 printf("Loaded Command was not built with CMAKE_IS_FUN: failed.\n");
28 ret = 1;
29 #endif
30 if(testSizeOf(SIZEOF_CHAR, sizeof(char)))
32 printf("Size of char is broken.\n");
33 ret = 1;
35 if(testSizeOf(SIZEOF_SHORT, sizeof(short)))
37 printf("Size of short is broken.\n");
38 ret = 1;
40 return ret;