Debian Codegraph @

clang/test/SemaCXX/exceptions-seh.mm

raw
1 // RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-extensions -fsyntax-only -fexceptions -fobjc-exceptions -verify %s
2
3 void might_crash();
4
5 void use_seh_after_objc() {
6 @try { // expected-note {{conflicting '@try' here}}
7 might_crash();
8 } @finally {
9 }
10 __try { // expected-error {{cannot use Objective-C '@try' in the same function as SEH '__try'}}
11 might_crash();
12 } __except(1) {
13 }
14 }
15
16 void use_objc_after_seh() {
17 __try { // expected-note {{conflicting '__try' here}}
18 might_crash();
19 } __except(1) {
20 }
21 @try { // expected-error {{cannot use Objective-C '@try' in the same function as SEH '__try'}}
22 might_crash();
23 } @finally {
24 }
25 }