21 lines · cpp
1// RUN: %clang_cc1 -triple i686-windows-msvc -emit-llvm -std=c++14 \2// RUN: -fno-threadsafe-statics -fms-extensions -O1 -mconstructor-aliases \3// RUN: -disable-llvm-passes -o - %s -w -fms-compatibility-version=19.00 | \4// RUN: FileCheck %s5 6struct HasDtor {7 ~HasDtor();8 int o;9};10struct HasImplicitDtor1 {11 HasDtor o;12};13struct __declspec(dllexport) CtorClosureOuter {14 struct __declspec(dllexport) CtorClosureInner {15 CtorClosureInner(const HasImplicitDtor1 &v = {}) {}16 };17};18 19// CHECK-LABEL: $"??1HasImplicitDtor1@@QAE@XZ" = comdat any20// CHECK-LABEL: define weak_odr dso_local dllexport x86_thiscallcc void @"??_FCtorClosureInner@CtorClosureOuter@@QAEXXZ"({{.*}}) {{#[0-9]+}} comdat21