solidity/test/libsolidity/smtCheckerTests/complex/warn_on_struct.sol
2020-09-03 15:19:03 +02:00

13 lines
425 B
Solidity

pragma experimental SMTChecker;
contract C {
struct A { uint a; uint b; }
function f() public pure returns (uint) {
A memory a = A({ a: 1, b: 2 });
}
}
// ----
// Warning 2072: (133-143): Unused local variable.
// Warning 8364: (146-147): Assertion checker does not yet implement type type(struct C.A storage pointer)
// Warning 4639: (146-163): Assertion checker does not yet implement this expression.