Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / dllexport-ctor-closure-nested.cpp
blob36dab8600e21b1d8110de35861fee0cc682659f2
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 %s
6 struct HasDtor {
7 ~HasDtor();
8 int o;
9 };
10 struct HasImplicitDtor1 {
11 HasDtor o;
13 struct __declspec(dllexport) CtorClosureOuter {
14 struct __declspec(dllexport) CtorClosureInner {
15 CtorClosureInner(const HasImplicitDtor1 &v = {}) {}
19 // CHECK-LABEL: $"??1HasImplicitDtor1@@QAE@XZ" = comdat any
20 // CHECK-LABEL: define weak_odr dso_local dllexport x86_thiscallcc void @"??_FCtorClosureInner@CtorClosureOuter@@QAEXXZ"({{.*}}) {{#[0-9]+}} comdat