[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc64-error-toc-restore.s
blob9e327a80429ab4b6a756632a9c69dfd7c65d528f
1 // REQUIRES: ppc
3 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
4 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %p/Inputs/shared-ppc64.s -o %t2.o
5 // RUN: ld.lld -shared %t2.o -o %t2.so
6 // RUN: not ld.lld %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s
8 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
9 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/shared-ppc64.s -o %t2.o
10 // RUN: ld.lld -shared %t2.o -o %t2.so
11 // RUN: not ld.lld %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s
13 # Calling external function bar needs a nop
14 // CHECK: call to foo lacks nop, can't restore toc
15 .text
16 .abiversion 2
18 .global _start
19 _start:
20 bl foo