Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 1 | // RUN: %clang -target x86_64-apple-darwin9 \ |
Daniel Dunbar | d47ea69 | 2011-03-17 23:28:31 +0000 | [diff] [blame] | 2 | // RUN: -fsyntax-only -fno-exceptions %s |
3 | |||||
4 | void f1() { | ||||
5 | @throw @"A"; | ||||
6 | } | ||||
7 | |||||
8 | void f0() { | ||||
9 | @try { | ||||
10 | f1(); | ||||
11 | } @catch (id x) { | ||||
12 | ; | ||||
13 | } | ||||
14 | } | ||||
15 | |||||
16 | int main() { | ||||
17 | f0(); | ||||
18 | return 0; | ||||
19 | } |