1REQUIRES: diasdk 2 3Input object file reconstruction: 4 5; // main.cpp 6; struct Base { 7; virtual int V2() { return 42; } 8; }; 9; 10; struct Derived : public Base { 11; int V2() override { return 42; } 12; }; 13; 14; int main() 15; { 16; Derived D; 17; return D.V2(); 18; } 19 20clang-cl /Z7 /GS- /GR- /c main.cpp /Foglobals-dia-vfunc-simple.obj 21 22RUN: lld-link /debug /nodefaultlib /entry:main /out:%t.exe %S/Inputs/globals-dia-vfunc-simple.obj 23RUN: llvm-pdbutil pretty -classes %t.pdb | FileCheck %s 24 25CHECK: func [0x00001070+ 0 - 0x0000107c-12 | sizeof= 12] (FPO) virtual {{.*}}V2() 26CHECK: func [0x000010a0+ 0 - 0x000010ac-12 | sizeof= 12] (FPO) virtual {{.*}}V2() 27