brintos

brintos / llvm-project-archived public Read only

0
0
Text · 353 B · ff5a0cb Raw
13 lines · plain
1// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fobjc-runtime=macosx-fragile-10.5 -fsyntax-only -verify %s 2 3@interface NSException @end4void opaque();5 6namespace test0 {7  void test() {8    try {9    } catch (NSException *e) { // expected-warning {{cannot catch an exception thrown with @throw in C++ in the non-unified exception model}}10    }11  }12}13