From: David Majnemer Date: Tue, 9 Dec 2014 01:36:45 +0000 (+0000) Subject: MS ABI: Add another test for PR20017 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a2fabcc3ffe05a9e39fdc714ff94ec57400d1bc;p=platform%2Fupstream%2Fllvm.git MS ABI: Add another test for PR20017 llvm-svn: 223733 --- diff --git a/clang/test/CodeGenCXX/microsoft-abi-member-pointers.cpp b/clang/test/CodeGenCXX/microsoft-abi-member-pointers.cpp index f403aff..719cb70 100644 --- a/clang/test/CodeGenCXX/microsoft-abi-member-pointers.cpp +++ b/clang/test/CodeGenCXX/microsoft-abi-member-pointers.cpp @@ -15,6 +15,16 @@ int B::*&b = b; // CHECK: @"\01?b@PR20947@@3AAPQB@1@HA" = global %[[opaque1]]* null, align 4 } +namespace PR20017 { +template +struct A { + int T::*m_fn1() { return nullptr; } +}; +struct B; +auto a = &A::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();