summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/diag2.test
blob: 05cd4c3a752a53126aee1b2b00a25a18988d0e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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 %t --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: >>> ^
OpenPOWER on IntegriCloud