1*67e74705SXin Li// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fobjc-runtime=macosx-fragile-10.5 -fsyntax-only -verify %s 2*67e74705SXin Li 3*67e74705SXin Li@interface NSException @end 4*67e74705SXin Livoid opaque(); 5*67e74705SXin Li 6*67e74705SXin Linamespace test0 { 7*67e74705SXin Li void test() { 8*67e74705SXin Li try { 9*67e74705SXin Li } catch (NSException *e) { // expected-warning {{cannot catch an exception thrown with @throw in C++ in the non-unified exception model}} 10*67e74705SXin Li } 11*67e74705SXin Li } 12*67e74705SXin Li} 13