From: Eli Friedman Date: Fri, 21 Jun 2013 01:28:03 +0000 (+0000) Subject: Add missing test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6498cdcd9922d98522a71013ddfd2b0809f0ef5;p=clang Add missing test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184515 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaObjCXX/exceptions.mm b/test/SemaObjCXX/exceptions.mm new file mode 100644 index 0000000000..37e6def35b --- /dev/null +++ b/test/SemaObjCXX/exceptions.mm @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -triple x86_64-apple-darwin11 -fsyntax-only -verify %s + +@interface NSException @end + +namespace test0 { + void test() { + try { + } catch (NSException e) { // expected-error {{can't catch an Objective-C object by value}} + } + } +}