clang/test/CodeGenCXX/dependent-type-member-point...

19 строки
311 B
C++

// RUN: %clang_cc1 -emit-llvm-only -verify %s
// PR7736
template <class scriptmemberptr> int InitMember(scriptmemberptr);
template <class>
struct contentmap
{
static void InitDataMap()
{ InitMember(&contentmap::SizeHolder); }
int SizeHolder;
};
void ReadFrom( )
{
contentmap<int>::InitDataMap();
}