r223733 - MS ABI: Add another test for PR20017
David Majnemer
david.majnemer at gmail.com
Mon Dec 8 17:36:45 PST 2014
Author: majnemer
Date: Mon Dec 8 19:36:45 2014
New Revision: 223733
URL: http://llvm.org/viewvc/llvm-project?rev=223733&view=rev
Log:
MS ABI: Add another test for PR20017
Modified:
cfe/trunk/test/CodeGenCXX/microsoft-abi-member-pointers.cpp
Modified: cfe/trunk/test/CodeGenCXX/microsoft-abi-member-pointers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/microsoft-abi-member-pointers.cpp?rev=223733&r1=223732&r2=223733&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/microsoft-abi-member-pointers.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/microsoft-abi-member-pointers.cpp Mon Dec 8 19:36:45 2014
@@ -15,6 +15,16 @@ int B::*&b = b;
// CHECK: @"\01?b at PR20947@@3AAPQB at 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 at PR20017@@3P8?$A at UB@PR20017@@@1 at AEPQB@1 at HXZQ21@" = global i8* bitcast ({ i32, i32, i32 } ({{.*}}*)* @"\01?m_fn1@?$A at UB@PR20017@@@PR20017@@QAEPQB at 2@HXZ" to i8*), align 4
+}
+
#ifndef INCOMPLETE_VIRTUAL
struct B1 {
void foo();
More information about the cfe-commits
mailing list