[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / default-output.s
blobe18f5da54259753f8d412d95ec5616a23125d1a2
1 # REQUIRES: x86
2 # Verify that default output filename is a.out.
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
5 # RUN: mkdir -p %t.dir
6 # RUN: cd %t.dir
7 # RUN: rm -f a.out
8 # RUN: not llvm-readobj a.out > /dev/null 2>&1
9 # RUN: ld.lld %t
10 # RUN: llvm-readobj a.out > /dev/null 2>&1
12 # RUN: not ld.lld %t -o 2>&1 | FileCheck --check-prefix=NO_O_VAL %s
13 # NO_O_VAL: error: -o: missing argument
15 .globl _start
16 _start:
17 mov $60, %rax
18 mov $42, %rdi
19 syscall