2018-02-23 18:15:54 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
|
|
|
|
|
|
# RUN: echo "SECTIONS { .bar (foo) : { } };" > %t.script
|
2020-02-13 13:48:45 +08:00
|
|
|
# RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
|
2018-02-23 18:15:54 +08:00
|
|
|
# CHECK: symbol not found: foo
|
|
|
|
|
|
|
|
# RUN: echo "SECTIONS { .bar : AT(foo) { } };" > %t.script
|
2020-02-13 13:48:45 +08:00
|
|
|
# RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
|
2018-02-23 18:15:54 +08:00
|
|
|
|
|
|
|
# RUN: echo "SECTIONS { .bar : ALIGN(foo) { } };" > %t.script
|
2020-02-13 13:48:45 +08:00
|
|
|
# RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
|
2018-02-23 18:15:54 +08:00
|
|
|
|
|
|
|
# RUN: echo "SECTIONS { .bar : SUBALIGN(foo) { } };" > %t.script
|
2020-02-13 13:48:45 +08:00
|
|
|
# RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
|