[libc++][NFC] Use TEST_HAS_NO_EXCEPTIONS.

The test should use the already available test macro.
This commit is contained in:
Mark de Wever 2022-03-12 12:11:00 +01:00
parent 5f016f5b7a
commit ec1a7647ee
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ struct std::formatter<status, CharT> {
private: private:
void throw_format_error(const char* s) { void throw_format_error(const char* s) {
#ifndef _LIBCPP_NO_EXCEPTIONS #ifndef TEST_HAS_NO_EXCEPTIONS
throw std::format_error(s); throw std::format_error(s);
#else #else
(void)s; (void)s;