[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / lld / test / MachO / arm64-objc-stubs-dead.s
blob5dcb171c17eac580698c392441a13e85bff99556
1 # REQUIRES: aarch64
3 # RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t.o
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
10 # CHECK: _foo
11 # CHECK: _objc_msgSend$length
13 # DEAD-NOT: _foo
14 # DEAD-NOT: _objc_msgSend$length
16 .section __TEXT,__text
18 .globl _foo
19 _foo:
20 bl _objc_msgSend$length
21 ret
23 .globl _main
24 _main:
25 ret
27 .subsections_via_symbols