summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/exceptions.m
blob: a74dee95ddab57afbba6f7437e0417831d2d798d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s
//
// <rdar://problem/7471679> [irgen] [eh] Exception code built with clang (x86_64) crashes

// Just check that we don't emit any dead blocks.
//
// RUN: grep 'No predecessors' %t | count 0

@interface NSArray @end
void f0() {
  @try {
    @try {
      @throw @"a";
    } @catch(NSArray *e) {
    }
  } @catch (id e) {
  }
}
OpenPOWER on IntegriCloud