r362331 - Add mangling test coverage for non-volatile const member pointers

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 2 10:23:54 PDT 2019


Author: nico
Date: Sun Jun  2 10:23:53 2019
New Revision: 362331

URL: http://llvm.org/viewvc/llvm-project?rev=362331&view=rev
Log:
Add mangling test coverage for non-volatile const member pointers

Modified:
    cfe/trunk/test/CodeGenCXX/mangle-ms.cpp

Modified: cfe/trunk/test/CodeGenCXX/mangle-ms.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/mangle-ms.cpp?rev=362331&r1=362330&r2=362331&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/mangle-ms.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/mangle-ms.cpp Sun Jun  2 10:23:53 2019
@@ -120,6 +120,10 @@ FunT FunArr[10][20];
 int (__stdcall *j)(signed char, unsigned char);
 // CHECK-DAG: @"?j@@3P6GHCE at ZA"
 
+const char foo2::*m;
+// CHECK-DAG: @"?m@@3PRfoo@@DR1@"
+// X64-DAG:   @"?m@@3PERfoo@@DER1@"
+
 const volatile char foo2::*k;
 // CHECK-DAG: @"?k@@3PTfoo@@DT1@"
 // X64-DAG:   @"?k@@3PETfoo@@DET1@"




More information about the cfe-commits mailing list