]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/expr-invalid-sec.s
Vendor import of lld trunk r321530:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / expr-invalid-sec.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "SECTIONS { foo = ADDR(.text) + ADDR(.text); };" > %t.script
4 # RUN: not ld.lld -o %t.so --script %t.script %t.o -shared 2>&1 | FileCheck %s
5
6 # CHECK: error: {{.*}}.script:1: at least one side of the expression must be absolute