summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/vtable-cast-crash.cpp
blob: cc419fd4f522d514b9ebc57158921afe5600af04 (about) (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 %s
struct A
{
A();    
virtual ~A();
};

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

B::B()
{
}

B::~B()
{
}