[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / lld / test / COFF / export-deleting-dtor.s
blob5d7b39ccb8e481a8f1f5063aa662ea55651f3aeb
1 # REQUIRES: x86
3 # RUN: llvm-mc -triple=x86_64-windows-msvc -defsym drectve=0 %s -filetype=obj -o %t.obj
4 # RUN: echo "EXPORTS ??_GFoo@@UEAAPEAXI@Z" > %t.def
6 # RUN: lld-link %t.obj -entry:dllmain -dll -export:'??_GFoo@@UEAAPEAXI@Z' -out:%t.1.dll 2>&1 | FileCheck %s
8 # RUN: lld-link %t.obj -entry:dllmain -dll -def:%t.def -out:%t.2.dll 2>&1 | FileCheck %s
10 # RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -defsym drectve=1 %s -o %t.drectve.obj
11 # RUN: lld-link %t.drectve.obj -entry:dllmain -dll -out:%t.3.dll 2>&1 | FileCheck %s
13 # CHECK: export of deleting dtor:{{.*}}Foo{{.*}}
15 .text
16 .globl dllmain
17 .globl "??_GFoo@@UEAAPEAXI@Z"
18 dllmain:
19 ret
20 "??_GFoo@@UEAAPEAXI@Z":
21 ret
23 .if drectve==1
24 .section .drectve
25 .ascii "-export:??_GFoo@@UEAAPEAXI@Z"
26 .endif