21 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-windows-gnu %s -emit-llvm -o - | FileCheck %s2// RUN: %clang_cc1 -triple x86_64-pc-cygwin %s -emit-llvm -o - | FileCheck %s3 4struct A { int a; };5struct B : virtual A { int b; };6B b;7class C {8 virtual ~C();9};10C::~C() {}11 12// CHECK: @_ZTI1C = linkonce_odr dso_local13// CHECK: @_ZTI1B = linkonce_odr dso_local constant { ptr, ptr, i32, i32, ptr, i64 }14// CHECK-SAME: ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv121__vmi_class_type_infoE, i64 2),15// CHECK-SAME: ptr @_ZTS1B,16// CHECK-SAME: i32 0,17// CHECK-SAME: i32 1,18// CHECK-SAME: ptr @_ZTI1A,19// This i64 is important, it should be an i64, not an i32.20// CHECK-SAME: i64 -6141 }, comdat21