mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test for true/false in inline assembly.
This commit is contained in:
parent
123ea0a250
commit
0f014144c8
12
test/libsolidity/semanticTests/inlineAssembly/truefalse.sol
Normal file
12
test/libsolidity/semanticTests/inlineAssembly/truefalse.sol
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
contract C {
|
||||||
|
function f() public returns (uint x, uint y) {
|
||||||
|
assembly {
|
||||||
|
x := true
|
||||||
|
y := false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// ====
|
||||||
|
// compileViaYul: also
|
||||||
|
// ----
|
||||||
|
// f() -> 1, 0
|
Loading…
Reference in New Issue
Block a user