summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/throw-expression-dtor.cpp
blob: 0de6683f88d112306e43d855c210894f3ae4f38e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 %s -emit-llvm-only -verify -fcxx-exceptions -fexceptions
// PR7281

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