diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-03-06 20:52:09 +0100 |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-03-06 20:52:09 +0100 |
commit | e2f25d3e8218fe0ae02680966b71cba8755d38de (patch) | |
tree | 3efa2d697898764011e6406793c664c1593cff82 /Tests | |
parent | a55ed1a37c74a7a112e6c355af0658b5d89dede1 (diff) | |
download | cmake-e2f25d3e8218fe0ae02680966b71cba8755d38de.tar.gz |
WriteCompilerDetectionHeader: fix STATIC_ASSERT
fixes #16185
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Module/WriteCompilerDetectionHeader/main.cpp | 3 | ||||
-rw-r--r-- | Tests/Module/WriteCompilerDetectionHeader/multi_files.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/Module/WriteCompilerDetectionHeader/main.cpp b/Tests/Module/WriteCompilerDetectionHeader/main.cpp index 192094c1be..9979cbae60 100644 --- a/Tests/Module/WriteCompilerDetectionHeader/main.cpp +++ b/Tests/Module/WriteCompilerDetectionHeader/main.cpp @@ -8,6 +8,9 @@ #error Expect no C features defined #endif +TEST_STATIC_ASSERT(true); +TEST_STATIC_ASSERT_MSG(true, "msg"); + int main() { return 0; diff --git a/Tests/Module/WriteCompilerDetectionHeader/multi_files.cpp b/Tests/Module/WriteCompilerDetectionHeader/multi_files.cpp index 1635091cb8..d1f178f7cb 100644 --- a/Tests/Module/WriteCompilerDetectionHeader/multi_files.cpp +++ b/Tests/Module/WriteCompilerDetectionHeader/multi_files.cpp @@ -8,6 +8,9 @@ #error Expect no C features defined #endif +MULTI_STATIC_ASSERT(true); +MULTI_STATIC_ASSERT_MSG(true, "msg"); + int main() { return 0; |