diff --git a/test/testother.cpp b/test/testother.cpp index 622842f01..73599f27b 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -942,6 +942,8 @@ private: " return reinterpret_cast(c);\n" "}", true); ASSERT_EQUALS("[test.cpp:2]: (portability) Casting from float* to integer* is not portable due to different binary data representations on different platforms\n", errout.str()); + + checkInvalidPointerCast("Q_DECLARE_METATYPE(int*)"); // #4135 - don't crash } void dangerousStrolUsage() {