// 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;
}

// 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;
}


--- 
+++ 
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm-only -verify
+// RUN: %clang_cc1 %s -emit-llvm -o - -fexceptions | FileCheck %s
 // PR7281
 
 class A {
@@ -11,4 +11,3 @@
 void B::ice_throw() {
     throw *this;
 }
-
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
