On Thu, Jun 20, 2013 at 6:28 PM, Eli Friedman <[email protected]> wrote: > 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.
Thanks for adding more test coverage! > > > 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 > + > +@interface NSException @end > + > +namespace test0 { > + void test() { > + try { > + } catch (NSException e) { // expected-error {{can't catch an Objective-C > object by value}} > + } > + } > +} > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
