John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fobjc-fragile-abi -fsyntax-only -verify %s |
John McCall | 5a18039 | 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 | d028302 | 2011-06-23 21:17:59 +0000 | [diff] [blame] | 9 | } catch (NSException *e) { // expected-warning {{can not catch an exception thrown with @throw in C++ in the non-unified exception model}} |
John McCall | 5a18039 | 2010-07-24 00:37:23 +0000 | [diff] [blame] | 10 | } |
| 11 | } |
| 12 | } |