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