blob: ff5a0cb4cd3caf02dd2c9c48cd5cae384459b104 [file] [log] [blame]
John McCall5fb5df92012-06-20 06:18:46 +00001// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fobjc-runtime=macosx-fragile-10.5 -fsyntax-only -verify %s
John McCall2ca705e2010-07-24 00:37:23 +00002
3@interface NSException @end
4void opaque();
5
6namespace test0 {
7 void test() {
8 try {
Ismail Pazarbasi025f4282014-03-07 22:36:23 +00009 } catch (NSException *e) { // expected-warning {{cannot catch an exception thrown with @throw in C++ in the non-unified exception model}}
John McCall2ca705e2010-07-24 00:37:23 +000010 }
11 }
12}