[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenCXX / strict-vtable-pointers-GH67937.cpp
blob692ca23a69abe6a29c8c932cf29840885cf90fc1
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
4 struct A {
5 virtual ~A();
6 };
7 struct B : virtual A {};
8 class C : B {};
9 C foo;
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
19 // CHECK-EMPTY:
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