Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 1 | // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fexceptions |
2 | |||||
3 | struct allocator { | ||||
4 | allocator(); | ||||
5 | allocator(const allocator&); | ||||
6 | ~allocator(); | ||||
7 | }; | ||||
8 | |||||
9 | void f(); | ||||
10 | void g(bool b, bool c) { | ||||
11 | if (b) { | ||||
12 | if (!c) | ||||
13 | throw allocator(); | ||||
14 | |||||
15 | return; | ||||
16 | } | ||||
17 | f(); | ||||
18 | } |