summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/vtable-cast-crash.cpp
blob: 58f9e0bf8f76852881c718e92a2040aa12b25c87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple %s
struct A
{
A();    
virtual ~A();
};

struct B: A
{
  B();
  ~B();
};

B::B()
{
}

B::~B()
{
}