blob: 4d8fb809ab9c057643b136306a1499687a2081b2 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fexceptions
Anders Carlsson8370c582009-12-11 00:32:37 +00002
3struct allocator {
4 allocator();
5 allocator(const allocator&);
6 ~allocator();
7};
8
9void f();
10void g(bool b, bool c) {
11 if (b) {
12 if (!c)
13 throw allocator();
14
15 return;
16 }
17 f();
18}