1 // RUN: %clang_cc1 %s -I%S -triple=x86_64-pc-windows-msvc -fstrict-vtable-pointers -disable-llvm-passes -O1 -emit-llvm -o %t.ll
2 // RUN: FileCheck %s < %t.ll
7 struct B
: virtual A
{};
11 // CHECK-LABEL: define {{.*}} @"??0C@@QEAA@XZ"(ptr {{.*}} %this, i32 {{.*}} %is_most_derived)
12 // CHECK: ctor.init_vbases:
13 // CHECK-NEXT: %0 = getelementptr inbounds i8, ptr %this1, i64 0
14 // CHECK-NEXT: store ptr @"??_8C@@7B@", ptr %0
15 // CHECK-NEXT: %1 = call ptr @llvm.launder.invariant.group.p0(ptr %this1)
16 // CHECK-NEXT: %2 = getelementptr inbounds i8, ptr %1, i64 8
17 // CHECK-NEXT: %call = call noundef ptr @"??0A@@QEAA@XZ"(ptr {{.*}} %2) #2
18 // CHECK-NEXT: br label %ctor.skip_vbases
20 // CHECK-NEXT: ctor.skip_vbases:
21 // CHECK-NEXT: %3 = call ptr @llvm.launder.invariant.group.p0(ptr %this1)
22 // CHECK-NEXT: %call3 = call noundef ptr @"??0B@@QEAA@XZ"(ptr {{.*}} %3, i32 noundef 0) #2