blob: 54d9f83ed5a1249698b1a2e1b9729d6713c2902a [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fobjc-runtime=macosx-fragile-10.5 -fsyntax-only -verify %s
John McCall5a180392010-07-24 00:37:23 +00002
3@interface NSException @end
4void opaque();
5
6namespace test0 {
7 void test() {
8 try {
Fariborz Jahaniand0283022011-06-23 21:17:59 +00009 } catch (NSException *e) { // expected-warning {{can not catch an exception thrown with @throw in C++ in the non-unified exception model}}
John McCall5a180392010-07-24 00:37:23 +000010 }
11 }
12}