mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
b09e004cde
They were failing in Chromium's packaging builds with: C:\b\rr\tmphqfaff\w\src\third_party\llvm\tools\lld\test\COFF\pdb-globals-dia-vfunc-collision2.test:24:8: error: expected string not found in input CHECK: func [0x00001060+ 0 - 0x0000106c-12 | sizeof= 12] (FPO) virtual int __cdecl A132() ^ <stdin>:8:11: note: scanning from here struct S [sizeof = 8] { ^ <stdin>:9:2: note: possible intended match here func [0x00001060+ 0 - 0x0000106c-12 | sizeof= 12] (FPO) virtual int __cdecl S::A132() ^ Maybe due to different DIA versions. llvm-svn: 336424
27 lines
648 B
Plaintext
27 lines
648 B
Plaintext
REQUIRES: diasdk
|
|
|
|
Input object file reconstruction:
|
|
|
|
; // main.cpp
|
|
; struct Base {
|
|
; virtual int V2() { return 42; }
|
|
; };
|
|
;
|
|
; struct Derived : public Base {
|
|
; int V2() override { return 42; }
|
|
; };
|
|
;
|
|
; int main()
|
|
; {
|
|
; Derived D;
|
|
; return D.V2();
|
|
; }
|
|
|
|
clang-cl /Z7 /GS- /GR- /c main.cpp /Foglobals-dia-vfunc-simple.obj
|
|
|
|
RUN: lld-link /debug /nodefaultlib /entry:main /out:%t.exe %S/Inputs/globals-dia-vfunc-simple.obj
|
|
RUN: llvm-pdbutil pretty -classes %t.pdb | FileCheck %s
|
|
|
|
CHECK: func [0x00001070+ 0 - 0x0000107c-12 | sizeof= 12] (FPO) virtual {{.*}}V2()
|
|
CHECK: func [0x000010a0+ 0 - 0x000010ac-12 | sizeof= 12] (FPO) virtual {{.*}}V2()
|