summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-02-21 19:34:56 (GMT)
committerBrad King <brad.king@kitware.com>2018-02-21 19:39:09 (GMT)
commit972f7caad354e0bb04d338446601d391e4b0efbd (patch)
tree343f3c546cfaa8c8dfb5c5863921c4cf73e912e1 /Tests
parent9c1efb614dee294cb3a1077e8a232573f309c605 (diff)
downloadCMake-972f7caad354e0bb04d338446601d391e4b0efbd.zip
CMake-972f7caad354e0bb04d338446601d391e4b0efbd.tar.gz
CMake-972f7caad354e0bb04d338446601d391e4b0efbd.tar.bz2
Tests: Make CompileFeatures C dialect check consistent with impl
`Modules/CMakeCCompilerId.c.in` will report the C dialect as 11 whenever `__STDC_VERSION__` indicates *at least* C 11. Make the test consistent with this. We already do this for the C++ case. Fixes: #17740
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileFeatures/default_dialect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CompileFeatures/default_dialect.c b/Tests/CompileFeatures/default_dialect.c
index 4debd94..2b4627c 100644
--- a/Tests/CompileFeatures/default_dialect.c
+++ b/Tests/CompileFeatures/default_dialect.c
@@ -1,6 +1,6 @@
#if DEFAULT_C11
-#if __STDC_VERSION__ != 201112L
+#if __STDC_VERSION__ < 201112L
#error Unexpected value for __STDC_VERSION__.
#endif
#elif DEFAULT_C99