Mercurial > hg > CbC > CbC_llvm
view lld/test/COFF/export-deleting-dtor.s @ 213:25ca0248ac32
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 11 Jul 2021 17:05:31 +0900 |
parents | 2e18cbf3894f |
children |
line wrap: on
line source
# REQUIRES: x86 # RUN: llvm-mc -triple=x86_64-windows-msvc -defsym drectve=0 %s -filetype=obj -o %t.obj # RUN: echo "EXPORTS ??_GFoo@@UEAAPEAXI@Z" > %t.def # RUN: lld-link %t.obj -entry:dllmain -dll -export:'??_GFoo@@UEAAPEAXI@Z' -out:%t.1.dll 2>&1 | FileCheck %s # RUN: lld-link %t.obj -entry:dllmain -dll -def:%t.def -out:%t.2.dll 2>&1 | FileCheck %s # RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -defsym drectve=1 %s -o %t.drectve.obj # RUN: lld-link %t.drectve.obj -entry:dllmain -dll -out:%t.3.dll 2>&1 | FileCheck %s # CHECK: export of deleting dtor:{{.*}}Foo{{.*}} .text .globl dllmain .globl "??_GFoo@@UEAAPEAXI@Z" dllmain: ret "??_GFoo@@UEAAPEAXI@Z": ret .if drectve==1 .section .drectve .ascii "-export:??_GFoo@@UEAAPEAXI@Z" .endif