forked from OSchip/llvm-project
parent
83ed889bbd
commit
6a2fabcc3f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue