brintos

brintos / llvm-project-archived public Read only

0
0
Text · 849 B · b6ef325 Raw
26 lines · plain
1## We're intentionally testing fatal errors (for malformed input files), and2## fatal errors aren't supported for testing when main is run twice.3# XFAIL: main-run-twice4 5# REQUIRES: x866# RUN: rm -rf %t; split-file %s %t7# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/not-terminated.s -o %t/not-terminated.o8# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/relocs.s -o %t/relocs.o9 10# RUN: not %lld -dylib %t/not-terminated.o 2>&1 | FileCheck %s --check-prefix=TERM11# RUN: not %lld -dylib %t/relocs.o 2>&1 | FileCheck %s --check-prefix=RELOCS12 13# TERM:   not-terminated.o:(__cstring+0x4): string is not null terminated14# RELOCS: error: {{.*}}relocs.o: __TEXT,__cstring contains relocations, which is unsupported15 16#--- not-terminated.s17.cstring18.asciz "foo"19.ascii "oh no"20 21#--- relocs.s22.cstring23_str:24.asciz "foo"25.quad _str26