blob: 11dd8e94c1de2a2ec54e4dd1ab2255a5ea3d2eeb [file] [log] [blame]
John McCall5a180392010-07-24 00:37:23 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3@interface NSException @end
4void opaque();
5
6namespace 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}