xref: /llvm-project/lld/test/MachO/invalid/cfstring.s (revision 002eda7056af54cf16caabbce4d1d39e860fbaaf)
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
6
7.cstring
8L_.str:
9  .asciz  "foo"
10
11.section  __DATA,__cfstring
12.p2align  3
13L__unnamed_cfstring_:
14  .quad  ___CFConstantStringClassReference
15  .long  1992 ## utf-8
16_uh_oh:
17  .space  4
18  .quad  L_.str
19  .quad  3 ## strlen
20