Daniel Dunbar | b76db23 | 2010-04-23 19:12:32 +0000 | [diff] [blame] | 1 | // 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 | ||||
10 | void f0() { | ||||
11 | @try { | ||||
12 | @try { | ||||
13 | @throw @"a"; | ||||
14 | } @catch(NSArray *e) { | ||||
15 | } | ||||
16 | } @catch (id e) { | ||||
17 | } | ||||
18 | } |