brintos

brintos / llvm-project-archived public Read only

0
0
Text · 665 B · 5efa3c3 Raw
26 lines · plain
1// RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-extensions -fsyntax-only -fexceptions -fobjc-exceptions -verify %s2 3void might_crash();4 5void 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 16void 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}26