llvm-project/lld/test/ELF/linkerscript/diag2.test

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
368 B
Plaintext
Raw Normal View History

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t.o
# RUN: not ld.lld -shared %t.o -o /dev/null --script %s 2>&1 | FileCheck -strict-whitespace %s
UNKNOWN_TAG {
.text : { *(.text) }
.keep : { *(.keep) }
.temp : { *(.temp) }
}
CHECK: 5: unknown directive: UNKNOWN_TAG
CHECK-NEXT: >>> UNKNOWN_TAG {
CHECK-NEXT: >>> ^