Mercurial > hg > CbC > CbC_llvm
comparison libcxxabi/test/catch_class_03.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 | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
173:0572611fdcc8 | 207:2e18cbf3894f |
---|---|
11 object for the various subobjects, all of which have a unique id_ to | 11 object for the various subobjects, all of which have a unique id_ to |
12 check against. | 12 check against. |
13 */ | 13 */ |
14 | 14 |
15 // UNSUPPORTED: no-exceptions | 15 // UNSUPPORTED: no-exceptions |
16 | |
17 // FIXME: GCC doesn't allow turning off the warning for exceptions being caught | |
18 // by earlier handlers, which this test is exercising. We have to disable | |
19 // warnings altogether to remove the error. | |
20 // See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675. | |
21 // ADDITIONAL_COMPILE_FLAGS: -Wno-error | |
16 | 22 |
17 #include <exception> | 23 #include <exception> |
18 #include <stdlib.h> | 24 #include <stdlib.h> |
19 #include <assert.h> | 25 #include <assert.h> |
20 | 26 |
179 { | 185 { |
180 assert(false); | 186 assert(false); |
181 } | 187 } |
182 } | 188 } |
183 | 189 |
184 int main() | 190 int main(int, char**) |
185 { | 191 { |
186 try | 192 try |
187 { | 193 { |
188 f4(); | 194 f4(); |
189 assert(false); | 195 assert(false); |
193 } | 199 } |
194 assert(A::count == 0); | 200 assert(A::count == 0); |
195 assert(C1::count == 0); | 201 assert(C1::count == 0); |
196 assert(C2::count == 0); | 202 assert(C2::count == 0); |
197 assert(B::count == 0); | 203 assert(B::count == 0); |
198 } | 204 |
205 return 0; | |
206 } |