Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libcxx
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2022-03-12 14:11:00 +0300
committerMark de Wever <koraq@xs4all.nl>2022-03-12 14:22:25 +0300
commitec1a7647ee67cd7d865f3621fe66d82bda7ccc15 (patch)
treeb9b5e76fbf2a7d85315e8951ab2b32be5c02fc98 /libcxx
parent5f016f5b7a775fbafe9b594958d7e4afb126e27a (diff)
[libc++][NFC] Use TEST_HAS_NO_EXCEPTIONS.
The test should use the already available test macro.
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/std/utilities/format/format.functions/format_tests.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/format/format.functions/format_tests.h b/libcxx/test/std/utilities/format/format.functions/format_tests.h
index df9f4f6b454c..b29f6cb73654 100644
--- a/libcxx/test/std/utilities/format/format.functions/format_tests.h
+++ b/libcxx/test/std/utilities/format/format.functions/format_tests.h
@@ -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;