Introduce a new test macro TEST_HAS_C11_FEATURES which is set when the underlying...
authorMarshall Clow <mclow.lists@gmail.com>
Tue, 31 Jul 2018 18:23:57 +0000 (18:23 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Tue, 31 Jul 2018 18:23:57 +0000 (18:23 +0000)
commit119f0a56d271150600054534692f70e0b0cade0a
tree1ee25943326ed4de5b011b07a0b9191b8e3c3370
parent1dac6ba7e25b7ee6a8a2c9f4718db3684225acfd
Introduce a new test macro TEST_HAS_C11_FEATURES which is set when the underlying C library has C11 features. In C++17, we use those features. <__config> defines a similar macro, _LIBCPP_HAS_C11_FEATURES, but we don't want to use that in the library-independent parts of the tests, so define the new one. Also add a libc++-specific test to make sure the two stay in sync.

llvm-svn: 338411
libcxx/test/libcxx/language.support/has_c11_features.pass.cpp [new file with mode: 0644]
libcxx/test/support/test_macros.h