3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
5 # Sanity check that the link will fail with the undefined error without
7 # RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
8 # CHECK: error: undefined symbol: undefined
10 # RUN: ld.lld %t.o --gc-sections -o %t
12 .section .text.unused,"ax",@progbits