Kevin Enderby | a59824a | 2015-10-06 22:27:08 +0000 | [diff] [blame] | 1 | // These test checks that llvm-objdump will not crash with malformed Mach-O |
| 2 | // files. So the check line is not all that important but the bug fixes to |
| 3 | // make sure llvm-objdump is robust is what matters. |
| 4 | # RUN: llvm-objdump -macho -objc-meta-data \ |
| 5 | # RUN: %p/Inputs/malformed-machos/mem-crup-0001.macho \ |
| 6 | # RUN: | FileCheck -check-prefix=m0001 %s |
| 7 | |
| 8 | # m0001: (method_t extends past the end of the section) |
| 9 | |
| 10 | # RUN: llvm-objdump -macho -objc-meta-data \ |
| 11 | # RUN: %p/Inputs/malformed-machos/mem-crup-0006.macho \ |
| 12 | # RUN: | FileCheck -check-prefix=m0006 %s |
| 13 | |
| 14 | # m0006: ivarLayout 0x8 |
Kevin Enderby | aac7538 | 2015-10-08 16:56:35 +0000 | [diff] [blame] | 15 | |
| 16 | # RUN: llvm-objdump -macho -objc-meta-data \ |
| 17 | # RUN: %p/Inputs/malformed-machos/mem-crup-0006.macho \ |
| 18 | # RUN: | FileCheck -check-prefix=m0010 %s |
| 19 | |
| 20 | # m0010: 00000000000010e0 0x10e8 _OBJC_CLASS_ |