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{{.*}}
17 .globl "??_GFoo@@UEAAPEAXI@Z"
20 "??_GFoo@@UEAAPEAXI@Z":
25 .ascii "-export:??_GFoo@@UEAAPEAXI@Z"