[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / common-replacement.s
blob3928b26874f60f6d842537444e6c1539f4b5fbb2
1 # REQUIRES: x86
3 # RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t1.obj
4 # RUN: llvm-mc -triple=x86_64-windows-gnu %S/Inputs/common-replacement.s -filetype=obj -o %t2.obj
6 # RUN: lld-link -lldmingw -entry:main %t1.obj %t2.obj -out:%t.exe -verbose 2>&1 \
7 # RUN: | FileCheck -check-prefix VERBOSE %s
8 # RUN: llvm-readobj -S %t.exe | FileCheck -check-prefix SECTIONS %s
10 # VERBOSE: -aligncomm:"foo",2
12 # As long as the .comm symbol is replaced with actual data, RawDataSize
13 # below should be nonzero.
15 # SECTIONS: Name: .data (2E 64 61 74 61 00 00 00)
16 # SECTIONS-NEXT: VirtualSize: 0x8
17 # SECTIONS-NEXT: VirtualAddress: 0x3000
18 # SECTIONS-NEXT: RawDataSize: 512
21 .text
22 .def main;
23 .scl 2;
24 .type 32;
25 .endef
26 .globl main
27 .p2align 4, 0x90
28 main:
29 movl foo(%rip), %eax
30 retq
32 # This produces an aligncomm directive, but when linking in
33 # Inputs/common-replacement.s, this symbol is replaced by a normal defined
34 # symbol instead.
35 .comm foo, 4, 2