1; RUN: llvm-as %s -o %t.o
2; RUN: %gold -shared -m elf_x86_64 -o %t2 -plugin %llvmshlibdir/LLVMgold%shlibext \
3; RUN: %t.o --plugin-opt=save-temps
4; RUN: llvm-nm %t2 | FileCheck %s --check-prefix=OUTPUT
5
6; OUTPUT: w patatino
7
8target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
9target triple = "x86_64-unknown-linux-gnu"
10
11module asm ".weak patatino"
12
13declare void @patatino()
14
15define void @_start() {
16  call void @patatino()
17  ret void
18}
19