brintos

brintos / llvm-project-archived public Read only

0
0
Text · 541 B · 2a14427 Raw
19 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-windows-gnu -mconstructor-aliases %s -emit-llvm -o - | FileCheck %s2 3// This test assumes that the C1 constructor will be aliased to the C24// constructor, and the D1 destructor to the D2. It then checks that the aliases5// are dllexport'ed.6 7class __declspec(dllexport) A {8public:9    A();10    ~A();11};12 13A::A() {}14 15A::~A() {}16 17// CHECK: @_ZN1AC1Ev = dso_local dllexport unnamed_addr alias void (ptr), ptr @_ZN1AC2Ev18// CHECK: @_ZN1AD1Ev = dso_local dllexport unnamed_addr alias void (ptr), ptr @_ZN1AD2Ev19