[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenCXX / pr28360.cpp
blob889cebb315277b37b2c39fdc80951da596bf48ab
1 // RUN: %clang_cc1 %s -emit-llvm -o - -triple i686-pc-win32 | FileCheck %s
2 struct A {
3 void Foo();
4 void Foo(int);
5 };
7 using MpTy = void (A::*)();
9 void Bar(const MpTy &);
11 void Baz() { Bar(&A::Foo); }
13 // CHECK-LABEL: define dso_local void @"?Baz@@YAXXZ"(
14 // CHECK: %[[ref_tmp:.*]] = alloca ptr, align 4
15 // CHECK: store ptr @"?Foo@A@@QAEXXZ", ptr %[[ref_tmp]], align 4
16 // CHECK: call void @"?Bar@@YAXABQ8A@@AEXXZ@Z"(ptr noundef nonnull align 4 dereferenceable(4) %[[ref_tmp]])