[SMTChecker] Show unsupported warning for asm blocks

This commit is contained in:
Leonardo Alt
2019-04-05 16:41:15 +02:00
parent ef3a18999c
commit 4fe303530a
5 changed files with 35 additions and 0 deletions
@@ -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.