2018-03-01 12:21:42 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t.o
|
2020-02-13 13:48:45 +08:00
|
|
|
# RUN: not ld.lld -shared %t.o -o /dev/null --script %s 2>&1 | FileCheck -strict-whitespace %s
|
2018-03-01 12:21:42 +08:00
|
|
|
|
|
|
|
UNKNOWN_TAG {
|
|
|
|
.text : { *(.text) }
|
|
|
|
.keep : { *(.keep) }
|
|
|
|
.temp : { *(.temp) }
|
|
|
|
}
|
|
|
|
|
|
|
|
CHECK: 5: unknown directive: UNKNOWN_TAG
|
|
|
|
CHECK-NEXT: >>> UNKNOWN_TAG {
|
|
|
|
CHECK-NEXT: >>> ^
|