Home | History | Annotate | Download | only in CodeGenCXX
      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 };
      6 
      7 using MpTy = void (A::*)();
      8 
      9 void Bar(const MpTy &);
     10 
     11 void Baz() { Bar(&A::Foo); }
     12 
     13 // CHECK-LABEL: define void @"\01?Baz@@YAXXZ"(
     14 // CHECK:  %[[ref_tmp:.*]] = alloca i8*, align 4
     15 // CHECK: store i8* bitcast (void (%struct.A*)* @"\01?Foo@A@@QAEXXZ" to i8*), i8** %[[ref_tmp]], align 4
     16 // CHECK: call void @"\01?Bar@@YAXABQ8A@@AEXXZ@Z"(i8** dereferenceable(4) %[[ref_tmp]])
     17