// The purpose of this test is to see if the COFF object writer is emitting the
// proper relocations for multiple pieces of data in a single data fragment.
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -h -S --sr --sd --symbols - | FileCheck %s
.def _main;
.scl 2;
.type 32;
.endef
.text
.globl _main
.align 16, 0x90
_main: # @main
# %bb.0: # %entry
subl $4, %esp
movl $.L_.str0, (%esp)
callq _printf
movl $.L_.str1, (%esp)
callq _puts
movl $.L_.str2, (%esp)
callq _puts
xorl %eax, %eax
addl $4, %esp
ret
.data
.L_.str0: # @.str0
.asciz "Hello "
.L_.str1: # @.str1
.asciz "World!"
.align 16 # @.str2
.L_.str2:
.asciz "I'm The Last Line."
// CHECK: {
// CHECK: Machine: IMAGE_FILE_MACHINE_AMD64
// CHECK: SectionCount: 3
// CHECK: TimeDateStamp: {{+}}
// CHECK: PointerToSymbolTable: 0x{{+}}
// CHECK: SymbolCount: 9
// CHECK: OptionalHeaderSize: 0
// CHECK: Characteristics
// CHECK: }
// CHECK: Sections