Add printing the LC_SUB_LIBRARY load command with llvm-objdump’s -private-headers.
[oota-llvm.git] / test / tools / llvm-objdump / X86 / macho-private-headers.test
index c2023527baba9af4ba610be0b7d2849f8811281e..a650cc8e161f2404e375087f29b1dd34adec0aeb 100644 (file)
@@ -9,6 +9,8 @@
 // RUN:     | FileCheck %s -check-prefix=SUB_FRAME
 // RUN: llvm-objdump -p %p/Inputs/dylibSubUmbrella.macho-x86_64 \
 // RUN:     | FileCheck %s -check-prefix=SUB_UMB
+// RUN: llvm-objdump -p %p/Inputs/dylibSubLibrary.macho-x86_64 \
+// RUN:     | FileCheck %s -check-prefix=SUB_LIB
 
 CHECK: Mach header
 CHECK:       magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
@@ -393,3 +395,8 @@ SUB_UMB: Load command 5
 SUB_UMB:           cmd LC_SUB_UMBRELLA
 SUB_UMB:       cmdsize 16
 SUB_UMB:  sub_umbrella Foo (offset 12)
+
+SUB_LIB: Load command 5
+SUB_LIB:           cmd LC_SUB_LIBRARY
+SUB_LIB:       cmdsize 20
+SUB_LIB:   sub_library libfoo (offset 12)