blob: ebbf6a0374d355db4471b66d6980f18f3e3c9a60 [file] [log] [blame]
Anders Carlsson6774b1f2011-02-28 00:40:07 +00001// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify %s
John McCall2ca705e2010-07-24 00:37:23 +00002
3@interface NSException @end
4void opaque();
5
6namespace test0 {
7 void test() {
8 try {
Fariborz Jahanian831f0fc2011-06-23 19:00:08 +00009 } catch (NSException *e) { // expected-warning {{catching Objective C exceptions in C++ in the non-unified exception model [-Wobjc-nonunified-exceptions]}}
John McCall2ca705e2010-07-24 00:37:23 +000010 }
11 }
12}