mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 08:46:06 +00:00

Conversion done using the script at https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34. These are tests where the conversion worked out of the box and no manual fixup was performed.
17 lines
481 B
C++
17 lines
481 B
C++
// RUN: %clang_cc1 %s -emit-llvm -o - -triple i686-pc-win32 | FileCheck %s
|
|
struct A {
|
|
void Foo();
|
|
void Foo(int);
|
|
};
|
|
|
|
using MpTy = void (A::*)();
|
|
|
|
void Bar(const MpTy &);
|
|
|
|
void Baz() { Bar(&A::Foo); }
|
|
|
|
// CHECK-LABEL: define dso_local void @"?Baz@@YAXXZ"(
|
|
// CHECK: %[[ref_tmp:.*]] = alloca ptr, align 4
|
|
// CHECK: store ptr @"?Foo@A@@QAEXXZ", ptr %[[ref_tmp]], align 4
|
|
// CHECK: call void @"?Bar@@YAXABQ8A@@AEXXZ@Z"(ptr noundef nonnull align 4 dereferenceable(4) %[[ref_tmp]])
|