[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / rtti-mingw64.cpp
blobe0a4607cf28c3de8af0264ae6abc944847c6d4af
1 // RUN: %clang_cc1 -triple x86_64-windows-gnu %s -emit-llvm -o - | FileCheck %s
2 struct A { int a; };
3 struct B : virtual A { int b; };
4 B b;
5 class C {
6 virtual ~C();
7 };
8 C::~C() {}
10 // CHECK: @_ZTI1C = linkonce_odr dso_local
11 // CHECK: @_ZTI1B = linkonce_odr dso_local constant { ptr, ptr, i32, i32, ptr, i64 }
12 // CHECK-SAME: ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv121__vmi_class_type_infoE, i64 2),
13 // CHECK-SAME: ptr @_ZTS1B,
14 // CHECK-SAME: i32 0,
15 // CHECK-SAME: i32 1,
16 // CHECK-SAME: ptr @_ZTI1A,
17 // This i64 is important, it should be an i64, not an i32.
18 // CHECK-SAME: i64 -6141 }, comdat