[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / include-cycle.s
blobe93ed904f05a3608d588011c1911ddeb133a3f5c
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
4 # RUN: echo "INCLUDE \"%t1.script\"" > %t1.script
5 # RUN: not ld.lld %t.o %t1.script 2>&1 | FileCheck %s
7 # RUN: echo "INCLUDE \"%t2.script\"" > %t1.script
8 # RUN: echo "INCLUDE \"%t1.script\"" > %t2.script
9 # RUN: not ld.lld %t.o %t1.script 2>&1 | FileCheck %s
11 # CHECK: there is a cycle in linker script INCLUDEs
13 .globl _start
14 _start:
15 ret