blob: 40ae1478997e6f0c9839dcab92d1aa723f5ef874 [file] [log] [blame] [edit]
# 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