1 // Build with "cl.exe /Zi /GR- /GX- every-array.cpp /link /debug /nodefaultlib /entry:main" 2 3 // clang-format off 4 void *__purecall = 0; 5 6 void __cdecl operator delete(void *,unsigned int) {} 7 void __cdecl operator delete(void *,unsigned __int64) {} 8 9 10 int func1() { return 42; } 11 int func2() { return 43; } 12 int func3() { return 44; } 13 14 template<typename T> 15 void Reference(T &t) { } 16 17 int IA[3] = {1, 2, 3}; 18 const int CIA[3] = {1, 2, 3}; 19 volatile int VIA[3] = {1, 2, 3}; 20 21 using FuncPtr = decltype(&func1); 22 FuncPtr FA[3] = {&func1, &func2, &func3}; 23 24 struct S { 25 int N; 26 int f() const { return 42; } 27 }; 28 29 using MemDataPtr = decltype(&S::N); 30 using MemFunPtr = decltype(&S::f); 31 32 MemDataPtr MDA[1] = {&S::N}; 33 MemFunPtr MFA[1] = {&S::f}; 34 35 36 int main(int argc, char **argv) { 37 } 38