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 7 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 8 target triple = "x86_64-unknown-freebsd11.0" 9 10 module asm ".weak __libc_blah" 11 module asm ".equ __libc_blah, blah" 12 module asm ".globl blah" 13 module asm "blah: ret" 14