2017-12-12 08:31:46 +08:00
|
|
|
# REQUIRES: x86, shell
|
2017-12-12 07:30:54 +08:00
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
|
|
# RUN: ld.lld -r %t.o -o %t1.o
|
2017-12-12 08:31:46 +08:00
|
|
|
# RUN: [ ! -x %t1.o ]
|
2017-12-12 07:30:54 +08:00
|
|
|
# RUN: ld.lld -shared %t.o -o %t2.so
|
2017-12-12 08:31:46 +08:00
|
|
|
# RUN: [ -x %t2.so ]
|
2017-12-12 07:30:54 +08:00
|
|
|
# RUN: ld.lld %t.o -o %t3
|
2017-12-12 08:31:46 +08:00
|
|
|
# RUN: [ -x %t3 ]
|
2017-12-12 07:30:54 +08:00
|
|
|
|
|
|
|
.global _start
|
|
|
|
_start:
|
|
|
|
nop
|