John McCall | 5fb5df9 | 2012-06-20 06:18:46 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fobjc-runtime=macosx-fragile-10.5 -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 { |
Ismail Pazarbasi | 025f428 | 2014-03-07 22:36:23 +0000 | [diff] [blame] | 9 | } catch (NSException *e) { // expected-warning {{cannot catch an exception thrown with @throw in C++ in the non-unified exception model}} |
John McCall | 2ca705e | 2010-07-24 00:37:23 +0000 | [diff] [blame] | 10 | } |
| 11 | } |
| 12 | } |