summaryrefslogtreecommitdiffstats
path: root/Tests/Module/WriteCompilerDetectionHeader/main.cpp
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-22 14:50:38 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-01-22 14:50:38 (GMT)
commit529293e344106a7132983a8f166a36e835fcce87 (patch)
treed4da71b32fba8692022190a51f122cd0edb00a61 /Tests/Module/WriteCompilerDetectionHeader/main.cpp
parentbe2a74dbcbbc3a6d6af8ccb0a70688e4db0f6901 (diff)
parent3c0996c135198fbcaf8951cffc98e3a1570e756d (diff)
downloadCMake-529293e344106a7132983a8f166a36e835fcce87.zip
CMake-529293e344106a7132983a8f166a36e835fcce87.tar.gz
CMake-529293e344106a7132983a8f166a36e835fcce87.tar.bz2
Merge topic 'WriteCompilerDetectionHeader-tests'
3c0996c1 WCDH: Test that no C compiler features are defined for CXX compiler. 8dc0c976 WCDH: Fix the C_STANDARD property in the tests.
Diffstat (limited to 'Tests/Module/WriteCompilerDetectionHeader/main.cpp')
-rw-r--r--Tests/Module/WriteCompilerDetectionHeader/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/Module/WriteCompilerDetectionHeader/main.cpp b/Tests/Module/WriteCompilerDetectionHeader/main.cpp
index 82b2191..192094c 100644
--- a/Tests/Module/WriteCompilerDetectionHeader/main.cpp
+++ b/Tests/Module/WriteCompilerDetectionHeader/main.cpp
@@ -4,6 +4,10 @@
#define PREFIX TEST
#include "compile_tests.h"
+#ifdef TEST_COMPILER_C_STATIC_ASSERT
+#error Expect no C features defined
+#endif
+
int main()
{
return 0;