[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / devirtualize-ms-dtor.cpp
blobad0416f0c978494a8bbc9356a3162797bcd57a54
1 // RUN: %clang_cc1 -std=c++11 -triple x86_64-windows-msvc %s -emit-llvm -o - | FileCheck %s
3 // If we de-virtualize ~Foo, we still need to call ??1Foo, not ??_DFoo.
5 struct Base {
6 virtual ~Base();
7 };
8 struct Foo final : Base {
9 };
10 void f(Foo *p) {
11 p->~Foo();
14 // CHECK-LABEL: define{{.*}} void @"?f@@YAXPEAUFoo@@@Z"(ptr noundef %p)
15 // CHECK: call void @"??1Foo@@UEAA@XZ"
16 // CHECK: ret void