brintos

brintos / llvm-project-archived public Read only

0
0
Text · 409 B · d142998 Raw
20 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o4 5# Sanity check that the link will fail with the undefined error without6# gc-sections.7# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s8# CHECK: error: undefined symbol: undefined9 10# RUN: ld.lld %t.o --gc-sections -o %t11 12.section .text.unused,"ax",@progbits13unused:14  callq undefined15 16.text17.global _start18_start:19  nop20