2015-09-30 06:46:52 +08:00
|
|
|
# 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
|
2015-09-30 06:57:22 +08:00
|
|
|
# RUN: rm -f a.out
|
2015-09-30 07:13:40 +08:00
|
|
|
# RUN: not llvm-readobj a.out > /dev/null 2>&1
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: ld.lld %t
|
2015-09-30 07:13:40 +08:00
|
|
|
# RUN: llvm-readobj a.out > /dev/null 2>&1
|
2015-09-30 06:46:52 +08:00
|
|
|
|
2020-03-28 02:35:02 +08:00
|
|
|
# RUN: not ld.lld %t -o 2>&1 | FileCheck --check-prefix=NO_O_VAL %s
|
|
|
|
# NO_O_VAL: error: -o: missing argument
|
|
|
|
|
2016-04-27 10:58:27 +08:00
|
|
|
.globl _start
|
2015-09-30 06:46:52 +08:00
|
|
|
_start:
|
|
|
|
mov $60, %rax
|
|
|
|
mov $42, %rdi
|
|
|
|
syscall
|