annotate libcxxabi/test/noexception4.pass.cpp @ 259:011663b4a808

remove duplicate setjmp in return continuation
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 12 Oct 2023 15:52:37 +0900
parents c4bab56944e8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents: 173
diff changeset
1 //===----------------------------------------------------------------------===//
150
anatofuz
parents:
diff changeset
2 //
anatofuz
parents:
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
anatofuz
parents:
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
anatofuz
parents:
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
anatofuz
parents:
diff changeset
6 //
anatofuz
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
8
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
9 // REQUIRES: no-exceptions
150
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 #include <cxxabi.h>
anatofuz
parents:
diff changeset
12 #include <exception>
anatofuz
parents:
diff changeset
13 #include <cassert>
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // namespace __cxxabiv1 {
anatofuz
parents:
diff changeset
16 // void *__cxa_current_primary_exception() throw();
anatofuz
parents:
diff changeset
17 // extern bool __cxa_uncaught_exception () throw();
anatofuz
parents:
diff changeset
18 // extern unsigned int __cxa_uncaught_exceptions() throw();
anatofuz
parents:
diff changeset
19 // }
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 int main ()
anatofuz
parents:
diff changeset
22 {
anatofuz
parents:
diff changeset
23 // Trivially
anatofuz
parents:
diff changeset
24 assert(nullptr == __cxxabiv1::__cxa_current_primary_exception());
anatofuz
parents:
diff changeset
25 assert(!__cxxabiv1::__cxa_uncaught_exception());
anatofuz
parents:
diff changeset
26 assert(0 == __cxxabiv1::__cxa_uncaught_exceptions());
anatofuz
parents:
diff changeset
27 return 0;
anatofuz
parents:
diff changeset
28 }