r184515 - Add missing test.
Eli Friedman
eli.friedman at gmail.com
Thu Jun 20 18:28:03 PDT 2013
Author: efriedma
Date: Thu Jun 20 20:28:03 2013
New Revision: 184515
URL: http://llvm.org/viewvc/llvm-project?rev=184515&view=rev
Log:
Add missing test.
Added:
cfe/trunk/test/SemaObjCXX/exceptions.mm
Added: cfe/trunk/test/SemaObjCXX/exceptions.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/exceptions.mm?rev=184515&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjCXX/exceptions.mm (added)
+++ cfe/trunk/test/SemaObjCXX/exceptions.mm Thu Jun 20 20:28:03 2013
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -triple x86_64-apple-darwin11 -fsyntax-only -verify %s
+
+ at interface NSException @end
+
+namespace test0 {
+ void test() {
+ try {
+ } catch (NSException e) { // expected-error {{can't catch an Objective-C object by value}}
+ }
+ }
+}
More information about the cfe-commits
mailing list