summaryrefslogtreecommitdiffstats
path: root/test/SemaObjCXX/exceptions-fragile.mm
blob: 11dd8e94c1de2a2ec54e4dd1ab2255a5ea3d2eeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fsyntax-only -verify %s 

@interface NSException @end
void opaque();

namespace test0 {
  void test() {
    try {
    } catch (NSException *e) { // expected-error {{can't catch Objective C exceptions in C++ in the non-unified exception model}}
    }
  }
}
OpenPOWER on IntegriCloud