blob: ebbf6a0374d355db4471b66d6980f18f3e3c9a60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify %s
@interface NSException @end
void opaque();
namespace test0 {
void test() {
try {
} catch (NSException *e) { // expected-warning {{catching Objective C exceptions in C++ in the non-unified exception model [-Wobjc-nonunified-exceptions]}}
}
}
}
|