blob: e18f5da54259753f8d412d95ec5616a23125d1a2 [file] [log] [blame]
# REQUIRES: x86
# Verify that default output filename is a.out.
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
# RUN: mkdir -p %t.dir
# RUN: cd %t.dir
# RUN: rm -f a.out
# RUN: not llvm-readobj a.out > /dev/null 2>&1
# RUN: ld.lld %t
# RUN: llvm-readobj a.out > /dev/null 2>&1
# RUN: not ld.lld %t -o 2>&1 | FileCheck --check-prefix=NO_O_VAL %s
# NO_O_VAL: error: -o: missing argument
.globl _start
_start:
mov $60, %rax
mov $42, %rdi
syscall