summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/virt-call-offsets.cpp
blob: db0ba2f483b87f1bf234788e80464ce948b9b8e4 (plain)
1
2
3
4
5
6
7
8
// RUN: clang -cc1 %s -emit-llvm -o - | FileCheck %s

struct A { virtual void a(); };
struct B : A {};
struct C : B { virtual void a(); };
void (C::*x)() = &C::a;

// CHECK: @x = global %0 { i{{[0-9]+}} 1, i{{[0-9]+}} 0 }