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
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)
10 .section .foo,"aM",@progbits,8
13 .section .bar,"ao",@progbits,.foo,unique,1
16 .section .bar,"ao",@progbits,.foo,unique,2