mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Sort tests.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
contract C {
|
||||
function f(uint256 x) public returns (uint256 a) {
|
||||
assembly {
|
||||
a := byte(x, 31)
|
||||
}
|
||||
}
|
||||
|
||||
function g(uint256 x) public returns (uint256 a) {
|
||||
assembly {
|
||||
a := byte(31, x)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f(uint256): 2 -> 0
|
||||
// g(uint256): 2 -> 2
|
||||
Reference in New Issue
Block a user