46 lines · plain
1## Test output flag and action flag are required.2# RUN: yaml2obj %s -o %t3# RUN: not llvm-bitcode-strip %t 2>&1 | FileCheck --check-prefix=MISSING-OUTPUT %s4# RUN: not llvm-bitcode-strip %t -o %t2 2>&1 | FileCheck --check-prefix=MISSING-ACTION %s5# RUN: llvm-bitcode-strip -r %t -o %t26 7# MISSING-OUTPUT: error: -o is a required argument8# MISSING-ACTION: error: no action specified9 10--- !mach-o11FileHeader:12 magic: 0xFEEDFACF13 cputype: 0x0100000714 cpusubtype: 0x0000000315 filetype: 0x0000000116 ncmds: 117 sizeofcmds: 15218 flags: 0x0000200019 reserved: 0x0000000020LoadCommands:21 - cmd: LC_SEGMENT_6422 cmdsize: 15223 segname: __TEXT24 vmaddr: 025 vmsize: 426 fileoff: 18427 filesize: 428 maxprot: 729 initprot: 730 nsects: 131 flags: 032 Sections:33 - sectname: __text34 segname: __TEXT35 addr: 0x000000000000000036 content: 'AABBCCDD'37 size: 438 offset: 18439 align: 040 reloff: 0x0000000041 nreloc: 042 flags: 0x8000040043 reserved1: 0x0000000044 reserved2: 0x0000000045 reserved3: 0x0000000046