solidity/test/libsolidity/syntaxTests/inlineAssembly/constant_access.sol

14 lines
248 B
Solidity
Raw Normal View History

contract C {
uint constant x = 2**20;
bool constant b = true;
bytes4 constant s = "ab";
function f() public pure {
assembly {
let c1 := x
let c2 := b
let c3 := s
}
}
}
// ----