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