xref: /minix3/external/bsd/llvm/dist/clang/test/SemaObjCXX/exceptions-fragile.mm (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fobjc-runtime=macosx-fragile-10.5 -fsyntax-only -verify %s
2
3@interface NSException @end
4void 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