summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LoadCommand/LoadedCommand.cxx6
-rw-r--r--Tests/LoadCommandOneConfig/LoadedCommand.cxx6
2 files changed, 10 insertions, 2 deletions
diff --git a/Tests/LoadCommand/LoadedCommand.cxx b/Tests/LoadCommand/LoadedCommand.cxx
index 8c125f0..04daff0 100644
--- a/Tests/LoadCommand/LoadedCommand.cxx
+++ b/Tests/LoadCommand/LoadedCommand.cxx
@@ -17,7 +17,11 @@ int main ()
printf("Should have ADDED_DEFINITION defined\n");
return 1;
#endif
-
+ if(SIZEOF_CHAR != 1)
+ {
+ printf("Size of char is not one, something is broken\n");
+ }
+
#ifdef CMAKE_IS_FUN
return SIZEOF_CHAR-1;
#else
diff --git a/Tests/LoadCommandOneConfig/LoadedCommand.cxx b/Tests/LoadCommandOneConfig/LoadedCommand.cxx
index 8c125f0..04daff0 100644
--- a/Tests/LoadCommandOneConfig/LoadedCommand.cxx
+++ b/Tests/LoadCommandOneConfig/LoadedCommand.cxx
@@ -17,7 +17,11 @@ int main ()
printf("Should have ADDED_DEFINITION defined\n");
return 1;
#endif
-
+ if(SIZEOF_CHAR != 1)
+ {
+ printf("Size of char is not one, something is broken\n");
+ }
+
#ifdef CMAKE_IS_FUN
return SIZEOF_CHAR-1;
#else