Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / invalid / cfstring.s
blob09b22a5bba5fc38958087443fcf2c9ba5fc8e50e
1 # REQUIRES: x86
2 # RUN: rm -rf %t; mkdir %t
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t/test.o
4 # RUN: not %lld -dylib -framework CoreFoundation --icf=all %t/test.o 2>&1 | FileCheck %s
5 # CHECK: error: {{.*}}test.o:(__cfstring): symbol _uh_oh at misaligned offset
7 .cstring
8 L_.str:
9 .asciz "foo"
11 .section __DATA,__cfstring
12 .p2align 3
13 L__unnamed_cfstring_:
14 .quad ___CFConstantStringClassReference
15 .long 1992 ## utf-8
16 _uh_oh:
17 .space 4
18 .quad L_.str
19 .quad 3 ## strlen