mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Show unsupported warning for asm blocks
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C
|
||||
{
|
||||
function f() public pure {
|
||||
assembly {
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (76-93): Assertion checker does not support inline assembly.
|
||||
@@ -0,0 +1,13 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C
|
||||
{
|
||||
function f(uint x) public pure returns (uint) {
|
||||
assembly {
|
||||
x := 2
|
||||
}
|
||||
return x;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (97-130): Assertion checker does not support inline assembly.
|
||||
Reference in New Issue
Block a user