1# REQUIRES: aarch64 2 3# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t.o 4 5# RUN: %lld -arch arm64 -lSystem -U _objc_msgSend -o %t.out %t.o 6# RUN: llvm-nm %t.out | FileCheck %s 7# RUN: %lld -arch arm64 -lSystem -U _objc_msgSend -dead_strip -o %t.out %t.o 8# RUN: llvm-nm %t.out | FileCheck %s --check-prefix=DEAD 9 10# CHECK: _foo 11# CHECK: _objc_msgSend$length 12 13# DEAD-NOT: _foo 14# DEAD-NOT: _objc_msgSend$length 15 16.section __TEXT,__text 17 18.globl _foo 19_foo: 20 bl _objc_msgSend$length 21 ret 22 23.globl _main 24_main: 25 ret 26 27.subsections_via_symbols 28