blob: a83ab23d7040124b3e0a8595d9fe6a0c14baa157 [file] [log] [blame]
Peter Smith220278f2020-01-15 09:38:00 +00001# 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 we start with a flag
6
7SECTIONS {
8 .text : { INPUT_SECTION_FLAGS(& SHF_ALLOC) *(.text) }
9}
10
11# CHECK: unrecognised flag: &
12# CHECK-NEXT: >>> .text : { INPUT_SECTION_FLAGS(& SHF_ALLOC) *(.text) }
13# CHECK-NEXT: >>> ^