r184515 - Add missing test.

David Blaikie dblaikie at gmail.com
Thu Jun 20 20:07:32 PDT 2013


On Thu, Jun 20, 2013 at 6:28 PM, Eli Friedman <eli.friedman at gmail.com> 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
> +
> + at 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
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list