MS ABI: Add another test for PR20017

llvm-svn: 223733
This commit is contained in:
David Majnemer 2014-12-09 01:36:45 +00:00
parent 83ed889bbd
commit 6a2fabcc3f
1 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,16 @@ int B::*&b = b;
// CHECK: @"\01?b@PR20947@@3AAPQB@1@HA" = global %[[opaque1]]* null, align 4
}
namespace PR20017 {
template <typename T>
struct A {
int T::*m_fn1() { return nullptr; }
};
struct B;
auto a = &A<B>::m_fn1;
// CHECK-DAG: @"\01?a@PR20017@@3P8?$A@UB@PR20017@@@1@AEPQB@1@HXZQ21@" = global i8* bitcast ({ i32, i32, i32 } ({{.*}}*)* @"\01?m_fn1@?$A@UB@PR20017@@@PR20017@@QAEPQB@2@HXZ" to i8*), align 4
}
#ifndef INCOMPLETE_VIRTUAL
struct B1 {
void foo();