You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
353 B
13 lines
353 B
4 months ago
|
// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fobjc-runtime=macosx-fragile-10.5 -fsyntax-only -verify %s
|
||
|
|
||
|
@interface NSException @end
|
||
|
void opaque();
|
||
|
|
||
|
namespace test0 {
|
||
|
void test() {
|
||
|
try {
|
||
|
} catch (NSException *e) { // expected-warning {{cannot catch an exception thrown with @throw in C++ in the non-unified exception model}}
|
||
|
}
|
||
|
}
|
||
|
}
|