From b6c1528566e4b5140fb64d42612ecadef7794e74 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Mon, 3 Sep 2012 11:32:15 +0200 Subject: [PATCH] Test case for #4135 --- test/testother.cpp | 2 ++ 1 file changed, 2 insertions(+) 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() {