xref: /llvm-project-15.0.7/lld/test/COFF/icf-executable.s (revision ff9e596b)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2# RUN: llvm-mc -triple=x86_64-windows-msvc %s -filetype=obj -o %t.obj
3# RUN: lld-link -entry:main %t.obj -out:%t.exe -verbose 2>&1 | FileCheck %s
4
5# CHECK: Selected internal
6# CHECK:   Removed f2
7
8.section .text,"xr",one_only,internal
9internal:
10.globl main
11main:
12call f2
13ret
14
15.section .text,"xr",one_only,f2
16.globl f2
17f2:
18call main
19ret
20

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026