blob: 4d8fb809ab9c057643b136306a1499687a2081b2 [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fexceptions
2
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}