1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o %t.o 3# RUN: not ld.lld -shared %t.o -o /dev/null --script %s 2>&1 | FileCheck -strict-whitespace %s 4 5## Check that flags are separated by & 6 7SECTIONS { 8 .text : { INPUT_SECTION_FLAGS(SHF_ALLOC SHF_EXECINSTR) *(.text) } 9} 10 11// CHECK: expected & or ) 12// CHECK-NEXT: >>> .text : { INPUT_SECTION_FLAGS(SHF_ALLOC SHF_EXECINSTR) *(.text) } 13// CHECK-NEXT: >>> ^ 14