John McCall | 5a18039 | 2010-07-24 00:37:23 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | @interface NSException @end | ||||
4 | void opaque(); | ||||
5 | |||||
6 | namespace test0 { | ||||
7 | void test() { | ||||
8 | try { | ||||
9 | } catch (NSException *e) { // expected-error {{can't catch Objective C exceptions in C++ in the non-unified exception model}} | ||||
10 | } | ||||
11 | } | ||||
12 | } |