[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / lld / test / COFF / lib-module-asm.ll
blob42c6797838c172efcb4c661807d95b45c57de0e3
1 ; REQUIRES: x86
2 ; PR41803: llvm-link /lib on object with module asm crashes
3 ; RUN: rm -f %t.lib
4 ; RUN: llvm-as -o %t.obj %s
5 ; RUN: lld-link /lib /out:%t.lib %t.obj
6 ; RUN: llvm-nm -M %t.lib | FileCheck %s
8 target datalayout = "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
9 target triple = "i386-pc-windows-msvc19.11.0"
11 module asm ".global global_asm_sym"
12 module asm "global_asm_sym:"
13 module asm "local_asm_sym:"
14 module asm ".long undef_asm_sym"
16 ; CHECK: Archive map
17 ; CHECK-NEXT: global_asm_sym in {{.*}}lib-module-asm.ll.tmp.obj
19 ; CHECK: lib-module-asm.ll.tmp.obj:{{$}}
20 ; CHECK-NEXT:         T global_asm_sym
21 ; CHECK-NEXT:         t local_asm_sym
22 ; CHECK-NEXT:         U undef_asm_sym