| // These test checks that llvm-objdump will not crash with malformed Mach-O |
| // files. So the check line is not all that important but the bug fixes to |
| // make sure llvm-objdump is robust is what matters. |
| # RUN: llvm-objdump -macho -objc-meta-data \ |
| # RUN: %p/Inputs/malformed-machos/mem-crup-0001.macho \ |
| # RUN: | FileCheck -check-prefix=m0001 %s |
| |
| # m0001: (method_t extends past the end of the section) |
| |
| # RUN: llvm-objdump -macho -objc-meta-data \ |
| # RUN: %p/Inputs/malformed-machos/mem-crup-0006.macho \ |
| # RUN: | FileCheck -check-prefix=m0006 %s |
| |
| # m0006: ivarLayout 0x8 |
| |
| # RUN: llvm-objdump -macho -objc-meta-data \ |
| # RUN: %p/Inputs/malformed-machos/mem-crup-0006.macho \ |
| # RUN: | FileCheck -check-prefix=m0010 %s |
| |
| # m0010: 00000000000010e0 0x10e8 _OBJC_CLASS_ |