1 // Compile for x86 (FPO disabled)
2 // Compile with "cl /c /Zi /GR- PrettyFuncDumperTest.cpp"
3 // Link with "link PrettyFuncDumperTest.obj /debug /nodefaultlib /entry:main"
5 typedef void (*FuncPtrA
)();
8 typedef float (*FuncPtrB
)(void);
11 typedef int(*VariadicFuncPtrTypedef
)(char, double, ...);
12 VariadicFuncPtrTypedef VariadicFuncVar
;
14 void Func(int array
[]) { return; }
16 template <int N
=1, class ...T
>
17 void TemplateFunc(T
...Arg
) {
22 void Func(int& a
, const double b
, volatile bool c
) { return; }
26 void Func(char a
, int b
, ...) {
31 namespace MemberFuncsTest
{
34 int FuncA() { return 1; }
35 void FuncB(int a
, ...) {}
40 MemberFuncsTest::A v1
;
44 NS::Func('c', 2, 10, 100);
47 TemplateFunc(10, 11, 88);