Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / invalid / cstring-dedup.s
blobb6ef32531b66f4941f645fe93905bcc3bde9f8a6
1 ## We're intentionally testing fatal errors (for malformed input files), and
2 ## fatal errors aren't supported for testing when main is run twice.
3 # XFAIL: main-run-twice
5 # REQUIRES: x86
6 # RUN: rm -rf %t; split-file %s %t
7 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/not-terminated.s -o %t/not-terminated.o
8 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/relocs.s -o %t/relocs.o
10 # RUN: not %lld -dylib %t/not-terminated.o 2>&1 | FileCheck %s --check-prefix=TERM
11 # RUN: not %lld -dylib %t/relocs.o 2>&1 | FileCheck %s --check-prefix=RELOCS
13 # TERM: not-terminated.o:(__cstring+0x4): string is not null terminated
14 # RELOCS: error: {{.*}}relocs.o: __TEXT,__cstring contains relocations, which is unsupported
16 #--- not-terminated.s
17 .cstring
18 .asciz "foo"
19 .ascii "oh no"
21 #--- relocs.s
22 .cstring
23 _str:
24 .asciz "foo"
25 .quad _str