1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // REQUIRES: no-exceptions
15 // namespace __cxxabiv1 {
16 // void *__cxa_current_primary_exception() throw();
17 // extern bool __cxa_uncaught_exception () throw();
18 // extern unsigned int __cxa_uncaught_exceptions() throw();
24 assert(nullptr == __cxxabiv1::__cxa_current_primary_exception());
25 assert(!__cxxabiv1::__cxa_uncaught_exception());
26 assert(0 == __cxxabiv1::__cxa_uncaught_exceptions());