// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s
.section __DATA,__datacoal_nt,coalesced
.section __TEXT,__const_coal,coalesced
.globl __ZTS3optIbE ## @_ZTS3optIbE
.weak_definition __ZTS3optIbE
__ZTS3optIbE:
.section __DATA,__datacoal_nt,coalesced
.globl __ZTI3optIbE ## @_ZTI3optIbE
.weak_definition __ZTI3optIbE
__ZTI3optIbE:
.long __ZTS3optIbE
// CHECK: File: <stdin>
// CHECK-NEXT: Format: Mach-O 32-bit i386
// CHECK-NEXT: Arch: i386
// CHECK-NEXT: AddressSize: 32bit
// CHECK-NEXT: MachHeader {
// CHECK-NEXT: Magic:
// CHECK-NEXT: CpuType:
// CHECK-NEXT: CpuSubType:
// CHECK-NEXT: FileType:
// CHECK-NEXT: NumOfLoadCommands: 4
// CHECK-NEXT: SizeOfLoadCommands: 380
// CHECK-NEXT: Flags
// CHECK-NEXT: }
// CHECK-NEXT: Sections
// CHECK-NEXT: Relocations
// CHECK-NEXT: Symbols
// CHECK-NEXT: Indirect Symbols {
// CHECK-NEXT: Number: 0
// CHECK-NEXT: Symbols
// CHECK-NEXT: }
// CHECK-NEXT: Segment {
// CHECK-NEXT: Cmd: LC_SEGMENT
// CHECK-NEXT: Name:
// CHECK-NEXT: Size: 260
// CHECK-NEXT: vmaddr: 0x0
// CHECK-NEXT: vmsize: 0x4
// CHECK-NEXT: fileoff: 408
// CHECK-NEXT: filesize: 4
// CHECK-NEXT: maxprot: rwx
// CHECK-NEXT: initprot: rwx
// CHECK-NEXT: nsects: 3
// CHECK-NEXT: flags: 0x0
// CHECK-NEXT: }
// CHECK-NEXT: Dysymtab {
// CHECK-NEXT: ilocalsym: 0
// CHECK-NEXT: nlocalsym: 0
// CHECK-NEXT: iextdefsym: 0
// CHECK-NEXT: nextdefsym: 2
// CHECK-NEXT: iundefsym: 2
// CHECK-NEXT: nundefsym: 0
// CHECK-NEXT: tocoff: 0
// CHECK-NEXT: ntoc: 0
// CHECK-NEXT: modtaboff: 0
// CHECK-NEXT: nmodtab: 0
// CHECK-NEXT: extrefsymoff: 0
// CHECK-NEXT: nextrefsyms: 0
// CHECK-NEXT: indirectsymoff: 0
// CHECK-NEXT: nindirectsyms: 0
// CHECK-NEXT: extreloff: 0
// CHECK-NEXT: nextrel: 0
// CHECK-NEXT: locreloff: 0
// CHECK-NEXT: nlocrel: 0
// CHECK-NEXT: }