xref: /minix3/external/bsd/llvm/dist/clang/test/SemaObjCXX/exceptions-fragile.mm (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
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 {{can not catch an exception thrown with @throw in C++ in the non-unified exception model}}
10    }
11  }
12}
13