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
5 ## Check that the section flag is recognized.
8 .text : { INPUT_SECTION_FLAGS(UNKNOWN_FLAG) *(.text) }
11 # CHECK: unrecognised flag: UNKNOWN_FLAG
12 # CHECK-NEXT: >>> .text : { INPUT_SECTION_FLAGS(UNKNOWN_FLAG) *(.text) }