mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 06:56:44 +00:00

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
26 lines
758 B
Plaintext
26 lines
758 B
Plaintext
REQUIRES: diasdk
|
|
|
|
Input object file reconstruction:
|
|
|
|
; // main.cpp
|
|
; struct S {
|
|
; // Function names are chosen specifically to generate hash collisions in the
|
|
; // GSI hash table.
|
|
; virtual int A132() { return 102; }
|
|
; virtual int A1001() { return 300; }
|
|
; };
|
|
;
|
|
; int main(int argc, char **argv) {
|
|
; S s;
|
|
; return s.A132();
|
|
; }
|
|
|
|
clang-cl /Z7 /GS- /GR- /c main.cpp /Foglobals-dia-vfunc-collision2.obj
|
|
|
|
RUN: lld-link /debug /nodefaultlib /entry:main /out:%t.exe %S/Inputs/globals-dia-vfunc-collision2.obj
|
|
RUN: llvm-pdbutil pretty -classes %t.pdb | FileCheck %s
|
|
|
|
CHECK: struct S
|
|
CHECK: func [0x00001060+ 0 - 0x0000106c-12 | sizeof= 12] (FPO) virtual {{.*}}A132()
|
|
CHECK: func [0x00001070+ 0 - 0x0000107c-12 | sizeof= 12] (FPO) virtual {{.*}}A1001()
|