25 lines · plain
1# REQUIRES: aarch642 3# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t.o4## This shouldn't assert.5# RUN: not %lld -arch arm64 -lSystem -o %t/thunk %t.o 2>&1 | FileCheck %s6 7# CHECK: error: undefined symbol: _g8 9.subsections_via_symbols10 11.p2align 212 13.globl _main, _g14 15.globl _main16_main:17 bl _g18 ret19 20_filler1:21.space 0x400000022 23_filler2:24.space 0x400000025