1# REQUIRES: x86 2 3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o 4# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s 5 6## Check we do not crash and report proper errors. 7# CHECK: error: a section .bar with SHF_LINK_ORDER should not refer a non-regular section: {{.*}}.o:(.foo) 8# CHECK-NEXT: error: a section .bar with SHF_LINK_ORDER should not refer a non-regular section: {{.*}}.o:(.foo) 9 10.section .foo,"aM",@progbits,8 11.quad 0 12 13.section .bar,"ao",@progbits,.foo,unique,1 14.quad 0 15 16.section .bar,"ao",@progbits,.foo,unique,2 17.quad 1 18