Test case for #4135
This commit is contained in:
parent
d98ee357d4
commit
b6c1528566
|
@ -942,6 +942,8 @@ private:
|
||||||
" return reinterpret_cast<long long*>(c);\n"
|
" return reinterpret_cast<long long*>(c);\n"
|
||||||
"}", true);
|
"}", 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());
|
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() {
|
void dangerousStrolUsage() {
|
||||||
|
|
Loading…
Reference in New Issue