brintos

brintos / llvm-project-archived public Read only

0
0
Text · 944 B · 432ef78 Raw
26 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-windows-gnu     -fdeclspec -emit-llvm -o - %s | FileCheck %s -DDSO_ATTRS="dso_local dllexport"2// RUN: %clang_cc1 -triple x86_64-windows-itanium -fdeclspec -emit-llvm -o - %s | FileCheck %s -DDSO_ATTRS="dso_local dllexport"3// RUN: %clang_cc1 -triple x86_64-scei-ps4        -fdeclspec -emit-llvm -o - %s | FileCheck %s -DDSO_ATTRS=dllexport4// RUN: %clang_cc1 -triple x86_64-sie-ps5         -fdeclspec -emit-llvm -o - %s | FileCheck %s -DDSO_ATTRS=dllexport5 6struct __declspec(dllexport) A {7  virtual void m();8};9struct __declspec(dllexport) B {10  virtual void m();11};12struct __declspec(dllexport) C : A, B {13  virtual void m();14};15void C::m() {}16// CHECK: define{{.*}} [[DSO_ATTRS]] void @_ZThn8_N1C1mEv17 18struct Base {19  virtual void m();20};21struct __declspec(dllexport) Derived : virtual Base {22  virtual void m();23};24void Derived::m() {}25// CHECK: define{{.*}} [[DSO_ATTRS]] void @_ZTv0_n24_N7Derived1mEv26