aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/virt.cpp
blob: a07d8e011f78c8f7fb8a3e2b170c2334d3a966fd (plain)
1
2
3
4
5
6
7
8
// RUN: clang-cc %s -emit-llvm -o - -std=c++0x

class A {
public:
  virtual void foo();
};

static_assert (sizeof (A) == (sizeof(void *)), "vtable pointer layout");