[libc++] Clean up tests for "optional" C11 features
authorLouis Dionne <ldionne@apple.com>
Tue, 28 Jul 2020 17:41:12 +0000 (13:41 -0400)
committerLouis Dionne <ldionne@apple.com>
Tue, 28 Jul 2020 19:13:05 +0000 (15:13 -0400)
commit1bd7c02233969b430b2d49e95345f507fdcc9f30
treee21172c459a07bad6316e6d93a570f618d16474e
parent69152a11cf181d9c1859947f0f2c2f1554a891f2
[libc++] Clean up tests for "optional" C11 features

First, add a TEST_HAS_QUICK_EXIT macro to mirror other C11 features like
TEST_HAS_ALIGNED_ALLOC, and update the tests for that.

Second, get rid of TEST_HAS_C11_FEATURES and _LIBCPP_HAS_C11_FEATURES,
which were only used to ensure that feature macros don't get out of
sync between <__config> and "test_macros.h". This is not necessary
anymore, since we have tests for each individual macro now.
12 files changed:
libcxx/include/__config
libcxx/test/libcxx/language.support/has_aligned_alloc.compile.pass.cpp [new file with mode: 0644]
libcxx/test/libcxx/language.support/has_c11_features.pass.cpp [deleted file]
libcxx/test/libcxx/language.support/has_quick_exit.compile.pass.cpp [new file with mode: 0644]
libcxx/test/libcxx/language.support/has_timespec_get.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/depr/depr.c.headers/float_h.pass.cpp
libcxx/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp
libcxx/test/std/language.support/support.start.term/at_quick_exit.compile.fail.cpp [moved from libcxx/test/std/language.support/support.start.term/quick_exit_check1.compile.fail.cpp with 70% similarity]
libcxx/test/std/language.support/support.start.term/quick_exit.compile.fail.cpp [moved from libcxx/test/std/language.support/support.start.term/quick_exit_check2.compile.fail.cpp with 72% similarity]
libcxx/test/std/language.support/support.start.term/quick_exit.pass.cpp
libcxx/test/support/msvc_stdlib_force_include.h
libcxx/test/support/test_macros.h