xref: /llvm-project/llvm/test/MC/AArch64/arm64-no-section.ll (revision a450ed23523fd41f09f3f1d4b8ba338993c4e156)
1*a450ed23SJessica Paquette; RUN: not llc -mtriple=aarch64-darwin-- -filetype=obj %s -o /dev/null 2>&1 >/dev/null | FileCheck %s
2*a450ed23SJessica Paquette; CHECK: error: unsupported relocation of local symbol 'L_foo_end'.
3*a450ed23SJessica Paquette; CHECK-SAME: Must have non-local symbol earlier in section.
4*a450ed23SJessica Paquette
5*a450ed23SJessica Paquette; Make sure that we emit an error when we try to reference something that
6*a450ed23SJessica Paquette; doesn't belong to a section.
7*a450ed23SJessica Paquettedefine void @foo() local_unnamed_addr {
8*a450ed23SJessica Paquette  call void asm sideeffect "b L_foo_end\0A", ""()
9*a450ed23SJessica Paquette  ret void
10*a450ed23SJessica Paquette}
11