forked from OSchip/llvm-project
[libc++][NFC] Use TEST_HAS_NO_EXCEPTIONS.
The test should use the already available test macro.
This commit is contained in:
parent
5f016f5b7a
commit
ec1a7647ee
|
@ -122,7 +122,7 @@ struct std::formatter<status, CharT> {
|
|||
|
||||
private:
|
||||
void throw_format_error(const char* s) {
|
||||
#ifndef _LIBCPP_NO_EXCEPTIONS
|
||||
#ifndef TEST_HAS_NO_EXCEPTIONS
|
||||
throw std::format_error(s);
|
||||
#else
|
||||
(void)s;
|
||||
|
|
Loading…
Reference in New Issue