llvm-project/clang/test/CodeGenCXX/virt-call-offsets.cpp
Chris Lattner f5926b460b fix this on 32-bit hosts.
llvm-svn: 134840
2011-07-09 18:33:01 +00:00

9 lines
248 B
C++

// 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 { i{{[0-9]+}}, i{{[0-9]+}} } { i{{[0-9]+}} 1, i{{[0-9]+}} 0 }