solidity/test/libsolidity/smtCheckerTests/typecast/cast_larger_2.sol
2019-01-16 13:00:54 +01:00

14 lines
314 B
Solidity

pragma experimental SMTChecker;
contract C
{
function f() public pure {
uint16 a = 0x1234;
uint32 b = uint32(a); // b will be 0x00001234 now
// This is correct (left padding).
assert(a == b);
}
}
// ----
// Warning: (108-117): Type conversion is not yet fully supported and might yield false positives.