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