Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / dependent-type-member-pointer.cpp
blob595eca5aab2deb971b8f4ffd1510dd32acf3b453
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
6 template <class scriptmemberptr> int InitMember(scriptmemberptr);
8 template <class>
9 struct contentmap
11 static void InitDataMap()
12 { InitMember(&contentmap::SizeHolder); }
13 int SizeHolder;
16 void ReadFrom( )
18 contentmap<int>::InitDataMap();