// RUN: %clang_cc1 %s -emit-llvm-only -verify
// PR7281

class A {
public:
    ~A();
};
class B : public A {
    void ice_throw();
};
void B::ice_throw() {
    throw *this;
}


// RUN: %clang_cc1 %s -emit-llvm -o - -fexceptions | FileCheck %s
// PR7281

class A {
public:
    ~A();
};
class B : public A {
    void ice_throw();
};
void B::ice_throw() {
    throw *this;
}

Make sure this test doesn't break when we disallow throwing an exception in -fno-exceptions mode.
Make sure this test doesn't break when we disallow throwing an exception
in -fno-exceptions mode.



git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@105432 91177308-0d34-0410-b5e6-96231b3b80d8
