diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-07-21 18:05:32 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-07-21 18:05:32 (GMT) |
commit | ad748ce26e61f19ab46308dff4cb614b839fcc1c (patch) | |
tree | 463a905658547440ef6f0a39a9f05fa665df6333 /Tests/LoadCommand/LoadedCommand.cxx.in | |
parent | 898dfe5a2deff445d501f3991b7553c3b3332dff (diff) | |
download | CMake-ad748ce26e61f19ab46308dff4cb614b839fcc1c.zip CMake-ad748ce26e61f19ab46308dff4cb614b839fcc1c.tar.gz CMake-ad748ce26e61f19ab46308dff4cb614b839fcc1c.tar.bz2 |
BUG: work around XCode issue
Diffstat (limited to 'Tests/LoadCommand/LoadedCommand.cxx.in')
-rw-r--r-- | Tests/LoadCommand/LoadedCommand.cxx.in | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Tests/LoadCommand/LoadedCommand.cxx.in b/Tests/LoadCommand/LoadedCommand.cxx.in new file mode 100644 index 0000000..c58bcf1 --- /dev/null +++ b/Tests/LoadCommand/LoadedCommand.cxx.in @@ -0,0 +1,41 @@ +#include "LoadedCommand.h" +#include <stdio.h> + +int testSizeOf(int s1, int s2) +{ + return s1 - s2; +} + +int main () +{ + int ret = 0; +#ifdef HAVE_VSBLABLA + printf("Should not be able to find vsblabla\n"); + ret = 1; +#endif + +#if !defined( HAVE_PRINTF ) + printf("Should be able to find printf\n"); + ret= 1; +#endif + +#if !defined( ADDED_DEFINITION ) + printf("Should have ADDED_DEFINITION defined\n"); + ret= 1; +#endif +#if !defined(CMAKE_IS_FUN) + printf("Loaded Command was not built with CMAKE_IS_FUN: failed.\n"); + ret = 1; +#endif + if(testSizeOf(SIZEOF_CHAR, sizeof(char))) + { + printf("Size of char is broken.\n"); + ret = 1; + } + if(testSizeOf(SIZEOF_SHORT, sizeof(short))) + { + printf("Size of short is broken.\n"); + ret = 1; + } + return ret; +} |