diff --git a/test/testother.cpp b/test/testother.cpp index 53995bbba..a78d7c18d 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -6122,6 +6122,12 @@ private: " return 0;\n" "}"); ASSERT_EQUALS("", errout.str()); + + // #6669 + check("void foo(size_t size) {\n" + " void * res{malloc(size)};\n" + "}", "test.cpp", false, false, true, &settings); + ASSERT_EQUALS("", errout.str()); } void redundantPointerOp() {