11 lines · plain
1; RUN: not llc -mtriple=aarch64-darwin-- -filetype=obj %s -o /dev/null 2>&1 >/dev/null | FileCheck %s2; CHECK: error: unsupported relocation of local symbol 'L_foo_end'.3; CHECK-SAME: Must have non-local symbol earlier in section.4 5; Make sure that we emit an error when we try to reference something that6; doesn't belong to a section.7define void @foo() local_unnamed_addr {8 call void asm sideeffect "b L_foo_end\0A", ""()9 ret void10}11