solidity/test/libsolidity/smtCheckerTests/file_level/free_constant_2.sol

14 lines
395 B
Solidity
Raw Normal View History

uint256 constant x = 56;
enum ActionChoices {GoLeft, GoRight, GoStraight, Sit}
ActionChoices constant choices = ActionChoices.GoRight;
bytes32 constant st = "abc\x00\xff__";
contract C {
function i() public returns (uint, ActionChoices, bytes32) {
return (x, choices, st);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----
2021-04-07 16:53:56 +00:00
// Warning 2018: (220-310): Function state mutability can be restricted to pure