Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -emit-llvm-only -verify %s
      2 // RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -emit-llvm-only -verify %s
      3 // expected-no-diagnostics
      4 // PR7736
      5 
      6 template <class scriptmemberptr> int InitMember(scriptmemberptr);
      7 
      8 template <class>
      9 struct contentmap
     10 {
     11   static void InitDataMap()
     12   { InitMember(&contentmap::SizeHolder); }
     13   int SizeHolder;
     14 };
     15 
     16 void ReadFrom( )
     17 {
     18   contentmap<int>::InitDataMap();
     19 }
     20 
     21