aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/default-output.s
blob: c0766acf6e55eb2bace4db54e719caea8553f8a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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

.globl _start
_start:
  mov $60, %rax
  mov $42, %rdi
  syscall