[flang][runtime] Make defined formatted I/O process format elementally (#74150)
[llvm-project.git] / libcxx / test / support / test.support / test_macros_header.exceptions.pass.cpp
blob1da9dc631b0afa02e6fd9abcec048e7f828a79e2
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // Make sure the TEST_HAS_NO_EXCEPTIONS macro is NOT defined when exceptions
10 // are enabled.
12 // UNSUPPORTED: no-exceptions
14 #include "test_macros.h"
16 #ifdef TEST_HAS_NO_EXCEPTIONS
17 # error "TEST_HAS_NO_EXCEPTIONS should NOT be defined"
18 #endif
20 int main(int, char**) {
21 try { (void)0; } catch (...) { }
22 return 0;