annotate libcxxabi/test/noexception4.pass.cpp @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 0572611fdcc8
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 //===----------------------- noexception4.pass.cpp ------------------------===//
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 }