Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fexceptions |
Anders Carlsson | 8370c58 | 2009-12-11 00:32:37 +0000 | [diff] [blame] | 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 | } |