You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
457 B
14 lines
457 B
7 months ago
|
# REQUIRES: x86
|
||
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o %t.o
|
||
|
# RUN: not ld.lld -shared %t.o -o /dev/null --script %s 2>&1 | FileCheck -strict-whitespace %s
|
||
|
|
||
|
## Check that the section flag is recognized.
|
||
|
|
||
|
SECTIONS {
|
||
|
.text : { INPUT_SECTION_FLAGS(UNKNOWN_FLAG) *(.text) }
|
||
|
}
|
||
|
|
||
|
# CHECK: unrecognised flag: UNKNOWN_FLAG
|
||
|
# CHECK-NEXT: >>> .text : { INPUT_SECTION_FLAGS(UNKNOWN_FLAG) *(.text) }
|
||
|
# CHECK-NEXT: >>> ^
|