2 # RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
3 # RUN: lld-link %t.obj -out:%t.exe -pdb:%t.pdb -debug -entry:main -subsystem:console
4 # RUN: llvm-pdbutil dump -publics %t.pdb | FileCheck %s
6 # Check that there are no __prof[dc] or __covrec public symbols.
11 # CHECK: S_PUB32 {{.*}} `main`
17 # The following assembly is simplified from this C code:
23 # clang-cl -c pgo-pubs.c -fprofile-instr-generate -fcoverage-mapping -clang:-save-temps
27 .intel_syntax noprefix
28 .globl main # -- Begin function main
34 .section .lcovfun$M,"dr",discard,__covrec_DB956436E78DD5FAu
35 .globl __covrec_DB956436E78DD5FAu # @__covrec_DB956436E78DD5FAu
37 __covrec_DB956436E78DD5FAu
:
38 .quad -2624081020897602054 # 0xdb956436e78dd5fa
41 .quad 2164039332547799183 # 0x1e08364eb07c288f
42 .ascii "\001\001\000\001\001\b\f\002\002"
44 .section .lcovmap$M,"dr"
45 .p2align 3 # @__llvm_coverage_mapping
46 .L__llvm_coverage_mapping:
51 .ascii "\002%\000\031C:\\src\\llvm-project\\build\npgo-pubs.i"
53 .section .lprfc$M,"dw"
54 .p2align 3 # @__profc_main
58 .section .lprfd$M,"dw"
59 .p2align 3 # @__profd_main
61 .quad -2624081020897602054 # 0xdb956436e78dd5fa
69 .section .lprfn$M,"dr"
70 .L__llvm_prf_nm: # @__llvm_prf_nm