1# REQUIRES: x86 2 3# RUN: not ld.lld -unknown1 -unknown2 -m foo /no/such/file -lnosuchlib \ 4# RUN: 2>&1 | FileCheck -check-prefix=UNKNOWN %s 5 6# UNKNOWN: warning: unknown argument: -unknown1 7# UNKNOWN: warning: unknown argument: -unknown2 8# UNKNOWN: unknown argument(s) found 9# UNKNOWN: Unknown emulation: foo 10# UNKNOWN: cannot open /no/such/file 11# UNKNOWN: Unable to find library -lnosuchlib 12 13# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t 14# RUN: not ld.lld %t -o /no/such/file 2>&1 | FileCheck -check-prefix=MISSING %s 15# MISSING: failed to open /no/such/file 16 17# RUN: ld.lld --help 2>&1 | FileCheck -check-prefix=HELP %s 18# HELP: USAGE: 19 20# RUN: ld.lld --version 2>&1 | FileCheck -check-prefix=VERSION %s 21# VERSION: LLD 22 23.globl _start 24_start: 25 nop 26