Sort tests.

This commit is contained in:
chriseth
2020-03-19 14:42:25 +01:00
parent 8834b1acaf
commit f25157a5f8
295 changed files with 0 additions and 0 deletions
@@ -0,0 +1,19 @@
contract D {
function f() public pure returns (uint256) {
return 7;
}
}
contract C {
function diff() public pure returns (uint256 remainder) {
bytes memory a = type(D).creationCode;
bytes memory b = type(D).runtimeCode;
assembly {
remainder := mod(sub(b, a), 0x20)
}
}
}
// ----
// diff() -> 0 # This checks that the allocation function pads to multiples of 32 bytes #