1 // Build with "cl.exe /Zi /GR- /GX- every-array.cpp /link /debug /nodefaultlib /entry:main"
6 void __cdecl
operator delete(void *,unsigned int) {}
7 void __cdecl
operator delete(void *,unsigned __int64
) {}
10 int func1() { return 42; }
11 int func2() { return 43; }
12 int func3() { return 44; }
15 void Reference(T
&t
) { }
17 int IA
[3] = {1, 2, 3};
18 const int CIA
[3] = {1, 2, 3};
19 volatile int VIA
[3] = {1, 2, 3};
21 using FuncPtr
= decltype(&func1
);
22 FuncPtr FA
[3] = {&func1
, &func2
, &func3
};
26 int f() const { return 42; }
29 using MemDataPtr
= decltype(&S::N
);
30 using MemFunPtr
= decltype(&S::f
);
32 MemDataPtr MDA
[1] = {&S::N
};
33 MemFunPtr MFA
[1] = {&S::f
};
36 int main(int argc
, char **argv
) {