comparison libcxxabi/test/unwind_02.pass.cpp @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 0572611fdcc8
children 5f17cb93ff66
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 // 6 //
7 //===----------------------------------------------------------------------===// 7 //===----------------------------------------------------------------------===//
8 8
9 // UNSUPPORTED: no-exceptions 9 // UNSUPPORTED: no-exceptions
10 // REQUIRES: c++98 || c++03 || c++11 || c++14 10 // REQUIRES: c++03 || c++11 || c++14
11 11
12 #include <assert.h> 12 #include <assert.h>
13 13
14 #if defined(__GNUC__) 14 #if defined(__GNUC__)
15 #pragma GCC diagnostic ignored "-Wunreachable-code" 15 #pragma GCC diagnostic ignored "-Wunreachable-code"
71 B b; 71 B b;
72 f2(); 72 f2();
73 C c; 73 C c;
74 } 74 }
75 75
76 int main() 76 int main(int, char**)
77 { 77 {
78 try 78 try
79 { 79 {
80 f1(); 80 f1();
81 assert(false); 81 assert(false);
97 assert(false); 97 assert(false);
98 } 98 }
99 assert(A::count == 0); 99 assert(A::count == 0);
100 assert(B::count == 0); 100 assert(B::count == 0);
101 assert(C::count == 0); 101 assert(C::count == 0);
102
103 return 0;
102 } 104 }