blob: a74dee95ddab57afbba6f7437e0417831d2d798d [file] [log] [blame]
Daniel Dunbarb76db232010-04-23 19:12:32 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s
2//
3// <rdar://problem/7471679> [irgen] [eh] Exception code built with clang (x86_64) crashes
4
5// Just check that we don't emit any dead blocks.
6//
7// RUN: grep 'No predecessors' %t | count 0
8
9@interface NSArray @end
10void f0() {
11 @try {
12 @try {
13 @throw @"a";
14 } @catch(NSArray *e) {
15 }
16 } @catch (id e) {
17 }
18}