aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/special/gasleft.sol
blob: ec56d9571e193f6b4946dcfee11106a24a29b809 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
pragma experimental SMTChecker;

contract C
{
    function f() public view {
        assert(gasleft() > 0);
    }
}
// ----
// Warning: (76-97): Assertion violation happens here