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

10 lines
205 B
Solidity
Raw Normal View History

contract C {
function f() pure public {
assembly {
pop(pc())
}
}
}
// ----
// SyntaxError: (61-63): PC instruction is a low-level EVM feature. Because of that PC is disallowed in strict assembly.