Why does valgrind reports on uninitialised bytes in the following code?
#include <valgrind/memcheck.h>
class Test {
public:
Test() {}
};
int main(int argc, char* argv[]) {
Test a;
VALGRIND_CHECK_VALUE_IS_DEFINED(a);
return 0;
}
If I add a member variable to test and initialise it, there is no output.