exceptions.cpp revision 8370c58b9295b32bee50443fe3ac43a47a2047e8
1// RUN: clang-cc %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}
19