Test for true/false in inline assembly.

This commit is contained in:
chriseth 2019-12-20 09:24:20 +01:00
parent 123ea0a250
commit 0f014144c8

View 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