]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjCXX/exceptions-fragile.mm
Vendor import of clang release_30 branch r142614:
[FreeBSD/FreeBSD.git] / test / SemaObjCXX / exceptions-fragile.mm
1 // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fobjc-fragile-abi -fsyntax-only -verify %s 
2
3 @interface NSException @end
4 void opaque();
5
6 namespace 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 }