1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o 3 4# RUN: echo "INCLUDE \"%t1.script\"" > %t1.script 5# RUN: not ld.lld %t.o %t1.script 2>&1 | FileCheck %s 6 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 10 11# CHECK: there is a cycle in linker script INCLUDEs 12 13.globl _start 14_start: 15 ret 16