summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/virtual-base-cast.cpp
blob: a825120ad2294c45f309a1055a52d62dd1211a82 (plain)
1
2
3
4
5
6
7
8
9
// RUN: clang-cc -emit-llvm-only %s

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

void f(C *c) {
  A* a = c;
}
OpenPOWER on IntegriCloud