aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/004_warn_on_struct.sol
blob: c50df07a3771e27ed071f7a35ef02f29b664521f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                                               
pragma experimental SMTChecker;
pragma experimental ABIEncoderV2;
contract C {
    struct A { uint a; uint b; }
    function f() public pure returns (A memory) {
        return A({ a: 1, b: 2 });
    }
}
// ----
// Warning: (32-65): Experimental features are turned on. Do not use experimental features on live deployments.
// Warning: (150-158): Assertion checker does not yet support the type of this variable.
// Warning: (177-194): Assertion checker does not yet implement this expression.