brintos

brintos / llvm-project-archived public Read only

0
0
Text · 481 B · 889cebb Raw
17 lines · cpp
1// RUN: %clang_cc1 %s -emit-llvm -o - -triple i686-pc-win32 | FileCheck %s2struct A {3  void Foo();4  void Foo(int);5};6 7using MpTy = void (A::*)();8 9void Bar(const MpTy &);10 11void Baz() { Bar(&A::Foo); }12 13// CHECK-LABEL: define dso_local void @"?Baz@@YAXXZ"(14// CHECK:  %[[ref_tmp:.*]] = alloca ptr, align 415// CHECK: store ptr @"?Foo@A@@QAEXXZ", ptr %[[ref_tmp]], align 416// CHECK: call void @"?Bar@@YAXABQ8A@@AEXXZ@Z"(ptr noundef nonnull align 4 dereferenceable(4) %[[ref_tmp]])17