1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /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
5UNKNOWN_TAG {
6  .text : { *(.text) }
7  .keep : { *(.keep) }
8  .temp : { *(.temp) }
9}
10
11CHECK:      5: unknown directive: UNKNOWN_TAG
12CHECK-NEXT: >>> UNKNOWN_TAG {
13CHECK-NEXT: >>> ^
14