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
This commit is contained in:
Brad King
2018-02-21 14:34:56 -05:00
parent 9c1efb614d
commit 972f7caad3
+1 -1
View File
@@ -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