Test case for #4135

This commit is contained in:
PKEuS 2012-09-03 11:32:15 +02:00
parent d98ee357d4
commit b6c1528566
1 changed files with 2 additions and 0 deletions

View File

@ -942,6 +942,8 @@ private:
" return reinterpret_cast<long long*>(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() {