aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/vtable-cast-crash.cpp
blob: cc419fd4f522d514b9ebc57158921afe5600af04 (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()
{
}