1*67e74705SXin Li// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -triple x86_64-apple-darwin11 -fsyntax-only -verify %s 2*67e74705SXin Li 3*67e74705SXin Li@interface NSException @end 4*67e74705SXin Li 5*67e74705SXin Linamespace test0 { 6*67e74705SXin Li void test() { 7*67e74705SXin Li try { 8*67e74705SXin Li } catch (NSException e) { // expected-error {{cannot catch an Objective-C object by value}} 9*67e74705SXin Li } 10*67e74705SXin Li } 11*67e74705SXin Li} 12