Anders Carlsson | 6774b1f | 2011-02-28 00:40:07 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify %s |
John McCall | 2ca705e | 2010-07-24 00:37:23 +0000 | [diff] [blame] | 2 | |
| 3 | @interface NSException @end |
| 4 | void opaque(); |
| 5 | |
| 6 | namespace test0 { |
| 7 | void test() { |
| 8 | try { |
Fariborz Jahanian | 831f0fc | 2011-06-23 19:00:08 +0000 | [diff] [blame] | 9 | } catch (NSException *e) { // expected-warning {{catching Objective C exceptions in C++ in the non-unified exception model [-Wobjc-nonunified-exceptions]}} |
John McCall | 2ca705e | 2010-07-24 00:37:23 +0000 | [diff] [blame] | 10 | } |
| 11 | } |
| 12 | } |