brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 09f1892 Raw
37 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t && mkdir -p %t && cd %t3# RUN: llvm-mc -filetype=obj -triple=i686-windows-msvc %s -o foo.obj4# RUN: llc %S/Inputs/bar.ll -filetype=obj -mtriple=i686-windows-msvc -o bar.obj5# RUN: llvm-lib bar.obj -out:bar.lib6# RUN: lld-link -safeseh:no -debug -pdb:foo.pdb foo.obj bar.lib -out:foo.exe -entry:main7# RUN: llvm-pdbutil dump -modules %t/foo.pdb | FileCheck %s8 9# Make sure that the PDB has module descriptors. foo.obj and bar.lib should be10# absolute paths, and bar.obj should be the relative path passed to llvm-lib.11 12# CHECK:                               Modules13# CHECK-NEXT: ============================================================14# CHECK-NEXT:   Mod 0000 | `{{.*pdb-lib.s.tmp[/\\]foo.obj}}`:15# CHECK-NEXT:              Obj: `{{.*pdb-lib.s.tmp[/\\]foo.obj}}`:16# CHECK-NEXT:              debug stream: 65535, # files: 0, has ec info: false17# CHECK-NEXT:              pdb file ni: 0 ``, src file ni: 0 ``18# CHECK-NEXT:   Mod 0001 | `bar.obj`:19# CHECK-NEXT:              Obj: `{{.*pdb-lib.s.tmp[/\\]bar.lib}}`:20# CHECK-NEXT:              debug stream: 65535, # files: 0, has ec info: false21# CHECK-NEXT:              pdb file ni: 0 ``, src file ni: 0 ``22# CHECK-NEXT:   Mod 0002 | `* Linker *`:23# CHECK-NEXT:              Obj: ``:24# CHECK-NEXT:              debug stream: 10, # files: 0, has ec info: false25# CHECK-NEXT:              pdb file ni: 1 `{{.*foo.pdb}}`, src file ni: 0 ``26 27        .def     _main;28        .scl    2;29        .type   32;30        .endef31        .globl  _main32_main:33        calll _bar34        xor %eax, %eax35        retl36 37