After compiling VLD 2.5 with Visual Studio 2015 i've ran all the tests to make sure it works.
But all (or at least all memory-related tests) fail. The VLD always returns a memory leak of 0.
Example:
```
Visual Leak Detector read settings from: C:\Program Files (x86)\Visual Leak Detector\vld.ini
Visual Leak Detector Version 2.5 installed.
[==========] Running 36 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 12 tests from TestBasicsDisabled
[ RUN ] TestBasicsDisabled.Malloc
[ OK ] TestBasicsDisabled.Malloc (0 ms)
[ RUN ] TestBasicsDisabled.New
[ OK ] TestBasicsDisabled.New (0 ms)
[ RUN ] TestBasicsDisabled.NewArray
[ OK ] TestBasicsDisabled.NewArray (0 ms)
[ RUN ] TestBasicsDisabled.Calloc
[ OK ] TestBasicsDisabled.Calloc (0 ms)
[ RUN ] TestBasicsDisabled.Realloc
[ OK ] TestBasicsDisabled.Realloc (0 ms)
[ RUN ] TestBasicsDisabled.CoTaskMem
[ OK ] TestBasicsDisabled.CoTaskMem (0 ms)
[ RUN ] TestBasicsDisabled.AlignedMalloc
[ OK ] TestBasicsDisabled.AlignedMalloc (0 ms)
[ RUN ] TestBasicsDisabled.AlignedRealloc
[ OK ] TestBasicsDisabled.AlignedRealloc (0 ms)
[ RUN ] TestBasicsDisabled.Strdup
[ OK ] TestBasicsDisabled.Strdup (0 ms)
[ RUN ] TestBasicsDisabled.HeapAlloc
[ OK ] TestBasicsDisabled.HeapAlloc (0 ms)
[ RUN ] TestBasicsDisabled.GetProcMalloc
[ OK ] TestBasicsDisabled.GetProcMalloc (0 ms)
[ RUN ] TestBasicsDisabled.IMalloc
[ OK ] TestBasicsDisabled.IMalloc (0 ms)
[----------] 12 tests from TestBasicsDisabled (10 ms total)
[----------] 24 tests from FreeVal/TestBasics
[ RUN ] FreeVal/TestBasics.Malloc/0
basics.cpp(33): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 2
[ FAILED ] FreeVal/TestBasics.Malloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.Malloc/1
[ OK ] FreeVal/TestBasics.Malloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.New/0
basics.cpp(43): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 2
[ FAILED ] FreeVal/TestBasics.New/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.New/1
[ OK ] FreeVal/TestBasics.New/1 (0 ms)
[ RUN ] FreeVal/TestBasics.NewArray/0
basics.cpp(53): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 2
[ FAILED ] FreeVal/TestBasics.NewArray/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.NewArray/1
[ OK ] FreeVal/TestBasics.NewArray/1 (0 ms)
[ RUN ] FreeVal/TestBasics.Calloc/0
basics.cpp(63): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 2
[ FAILED ] FreeVal/TestBasics.Calloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.Calloc/1
[ OK ] FreeVal/TestBasics.Calloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.Realloc/0
[ OK ] FreeVal/TestBasics.Realloc/0 (20 ms)
[ RUN ] FreeVal/TestBasics.Realloc/1
[ OK ] FreeVal/TestBasics.Realloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.CoTaskMem/0
basics.cpp(83): error: Value of: leaks
Actual: 1
Expected: correctLeaks
Which is: 2
[ FAILED ] FreeVal/TestBasics.CoTaskMem/0, where GetParam() = false (40 ms)
[ RUN ] FreeVal/TestBasics.CoTaskMem/1
[ OK ] FreeVal/TestBasics.CoTaskMem/1 (0 ms)
[ RUN ] FreeVal/TestBasics.AlignedMalloc/0
basics.cpp(93): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 3
[ FAILED ] FreeVal/TestBasics.AlignedMalloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.AlignedMalloc/1
[ OK ] FreeVal/TestBasics.AlignedMalloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.AlignedRealloc/0
basics.cpp(103): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 3
[ FAILED ] FreeVal/TestBasics.AlignedRealloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.AlignedRealloc/1
[ OK ] FreeVal/TestBasics.AlignedRealloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.Strdup/0
basics.cpp(113): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 4
[ FAILED ] FreeVal/TestBasics.Strdup/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.Strdup/1
[ OK ] FreeVal/TestBasics.Strdup/1 (0 ms)
[ RUN ] FreeVal/TestBasics.HeapAlloc/0
basics.cpp(123): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 1
[ FAILED ] FreeVal/TestBasics.HeapAlloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.HeapAlloc/1
[ OK ] FreeVal/TestBasics.HeapAlloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.IMalloc/0
basics.cpp(133): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 1
[ FAILED ] FreeVal/TestBasics.IMalloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.IMalloc/1
[ OK ] FreeVal/TestBasics.IMalloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.GetProcMalloc/0
basics.cpp(143): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 1
[ FAILED ] FreeVal/TestBasics.GetProcMalloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.GetProcMalloc/1
[ OK ] FreeVal/TestBasics.GetProcMalloc/1 (0 ms)
[----------] 24 tests from FreeVal/TestBasics (210 ms total)
[----------] Global test environment tear-down
[==========] 36 tests from 2 test cases ran. (220 ms total)
[ PASSED ] 25 tests.
[ FAILED ] 11 tests, listed below:
[ FAILED ] FreeVal/TestBasics.Malloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.New/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.NewArray/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.Calloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.CoTaskMem/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.AlignedMalloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.AlignedRealloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.Strdup/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.HeapAlloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.IMalloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.GetProcMalloc/0, where GetParam() = false
11 FAILED TESTS
```
But all (or at least all memory-related tests) fail. The VLD always returns a memory leak of 0.
Example:
```
Visual Leak Detector read settings from: C:\Program Files (x86)\Visual Leak Detector\vld.ini
Visual Leak Detector Version 2.5 installed.
[==========] Running 36 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 12 tests from TestBasicsDisabled
[ RUN ] TestBasicsDisabled.Malloc
[ OK ] TestBasicsDisabled.Malloc (0 ms)
[ RUN ] TestBasicsDisabled.New
[ OK ] TestBasicsDisabled.New (0 ms)
[ RUN ] TestBasicsDisabled.NewArray
[ OK ] TestBasicsDisabled.NewArray (0 ms)
[ RUN ] TestBasicsDisabled.Calloc
[ OK ] TestBasicsDisabled.Calloc (0 ms)
[ RUN ] TestBasicsDisabled.Realloc
[ OK ] TestBasicsDisabled.Realloc (0 ms)
[ RUN ] TestBasicsDisabled.CoTaskMem
[ OK ] TestBasicsDisabled.CoTaskMem (0 ms)
[ RUN ] TestBasicsDisabled.AlignedMalloc
[ OK ] TestBasicsDisabled.AlignedMalloc (0 ms)
[ RUN ] TestBasicsDisabled.AlignedRealloc
[ OK ] TestBasicsDisabled.AlignedRealloc (0 ms)
[ RUN ] TestBasicsDisabled.Strdup
[ OK ] TestBasicsDisabled.Strdup (0 ms)
[ RUN ] TestBasicsDisabled.HeapAlloc
[ OK ] TestBasicsDisabled.HeapAlloc (0 ms)
[ RUN ] TestBasicsDisabled.GetProcMalloc
[ OK ] TestBasicsDisabled.GetProcMalloc (0 ms)
[ RUN ] TestBasicsDisabled.IMalloc
[ OK ] TestBasicsDisabled.IMalloc (0 ms)
[----------] 12 tests from TestBasicsDisabled (10 ms total)
[----------] 24 tests from FreeVal/TestBasics
[ RUN ] FreeVal/TestBasics.Malloc/0
basics.cpp(33): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 2
[ FAILED ] FreeVal/TestBasics.Malloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.Malloc/1
[ OK ] FreeVal/TestBasics.Malloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.New/0
basics.cpp(43): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 2
[ FAILED ] FreeVal/TestBasics.New/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.New/1
[ OK ] FreeVal/TestBasics.New/1 (0 ms)
[ RUN ] FreeVal/TestBasics.NewArray/0
basics.cpp(53): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 2
[ FAILED ] FreeVal/TestBasics.NewArray/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.NewArray/1
[ OK ] FreeVal/TestBasics.NewArray/1 (0 ms)
[ RUN ] FreeVal/TestBasics.Calloc/0
basics.cpp(63): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 2
[ FAILED ] FreeVal/TestBasics.Calloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.Calloc/1
[ OK ] FreeVal/TestBasics.Calloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.Realloc/0
[ OK ] FreeVal/TestBasics.Realloc/0 (20 ms)
[ RUN ] FreeVal/TestBasics.Realloc/1
[ OK ] FreeVal/TestBasics.Realloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.CoTaskMem/0
basics.cpp(83): error: Value of: leaks
Actual: 1
Expected: correctLeaks
Which is: 2
[ FAILED ] FreeVal/TestBasics.CoTaskMem/0, where GetParam() = false (40 ms)
[ RUN ] FreeVal/TestBasics.CoTaskMem/1
[ OK ] FreeVal/TestBasics.CoTaskMem/1 (0 ms)
[ RUN ] FreeVal/TestBasics.AlignedMalloc/0
basics.cpp(93): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 3
[ FAILED ] FreeVal/TestBasics.AlignedMalloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.AlignedMalloc/1
[ OK ] FreeVal/TestBasics.AlignedMalloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.AlignedRealloc/0
basics.cpp(103): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 3
[ FAILED ] FreeVal/TestBasics.AlignedRealloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.AlignedRealloc/1
[ OK ] FreeVal/TestBasics.AlignedRealloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.Strdup/0
basics.cpp(113): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 4
[ FAILED ] FreeVal/TestBasics.Strdup/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.Strdup/1
[ OK ] FreeVal/TestBasics.Strdup/1 (0 ms)
[ RUN ] FreeVal/TestBasics.HeapAlloc/0
basics.cpp(123): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 1
[ FAILED ] FreeVal/TestBasics.HeapAlloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.HeapAlloc/1
[ OK ] FreeVal/TestBasics.HeapAlloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.IMalloc/0
basics.cpp(133): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 1
[ FAILED ] FreeVal/TestBasics.IMalloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.IMalloc/1
[ OK ] FreeVal/TestBasics.IMalloc/1 (0 ms)
[ RUN ] FreeVal/TestBasics.GetProcMalloc/0
basics.cpp(143): error: Value of: leaks
Actual: 0
Expected: correctLeaks
Which is: 1
[ FAILED ] FreeVal/TestBasics.GetProcMalloc/0, where GetParam() = false (0 ms)
[ RUN ] FreeVal/TestBasics.GetProcMalloc/1
[ OK ] FreeVal/TestBasics.GetProcMalloc/1 (0 ms)
[----------] 24 tests from FreeVal/TestBasics (210 ms total)
[----------] Global test environment tear-down
[==========] 36 tests from 2 test cases ran. (220 ms total)
[ PASSED ] 25 tests.
[ FAILED ] 11 tests, listed below:
[ FAILED ] FreeVal/TestBasics.Malloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.New/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.NewArray/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.Calloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.CoTaskMem/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.AlignedMalloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.AlignedRealloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.Strdup/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.HeapAlloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.IMalloc/0, where GetParam() = false
[ FAILED ] FreeVal/TestBasics.GetProcMalloc/0, where GetParam() = false
11 FAILED TESTS
```