xref: /llvm-project/llvm/test/Object/X86/nm-bitcodeweak.test (revision f7518498ffa4064b548aa924a6ce4fa6d9378645)
1; RUN: llvm-as %s -o=%t1
2; RUN: llvm-nm %t1 | FileCheck %s
3
4; Check that __libc_blah is reported as defined weak.
5; CHECK: W __libc_blah
6
7target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8target triple = "x86_64-unknown-freebsd11.0"
9
10module asm ".weak __libc_blah"
11module asm ".equ __libc_blah, blah"
12module asm ".globl blah"
13module asm "blah: ret"
14