llvm-for-llvmta/tools/clang/test/CodeGenCXX/throw-expression-dtor.cpp

15 lines
260 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 %s -emit-llvm-only -verify -triple %itanium_abi_triple -fcxx-exceptions -fexceptions
// expected-no-diagnostics
// PR7281
class A {
public:
~A();
};
class B : public A {
void ice_throw();
};
void B::ice_throw() {
throw *this;
}