brintos

brintos / llvm-project-archived public Read only

0
0
Text · 528 B · 1324be2 Raw
25 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t && split-file %s %t && cd %t3 4# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux /dev/null -o a.o5# RUN: ld.lld --script a.t a.o -shared6 7# lld shouldn't crash.8 9#--- a.t10SECTIONS { .foo : ALIGN(2M) {} }11 12# RUN: not ld.lld --script b.t 2>&1 | FileCheck %s --match-full-lines --strict-whitespace13 14# lld should not crash and report the error properly.15 16# CHECK:{{.*}} error: b.t:3: malformed number: :17# CHECK:>>>   S :ALIGN(4096) {}18# CHECK:>>>     ^19 20#--- b.t21SECTIONS22{23  S :ALIGN(4096) {}24}25