llvm-project/lld/test/pecoff/grouped-sections.test

18 lines
486 B
Plaintext

# RUN: yaml2obj %p/Inputs/grouped-sections.obj.yaml > %t.obj
#
# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:main -- %t.obj
# RUN: llvm-objdump -s %t.exe | FileCheck %s
#
# The file "grouped-sections.obj" has three data sections in the following
# order:
#
# .data$2
# .data$1
# .data
#
# If all the sections will be merged correctly, the resulting ".data"
# section will have the string "Hello, world".
CHECK: Contents of section .data:
CHECK-NEXT: Hello, world