aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/conditional_with_variables.sol
blob: bbabf957851bb92b2bef8b7d35edad67c46a5ec6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
contract A {
    function f() public {
        uint x = 3;
        uint y = 1;
        uint z = (x > y) ? x : y;
        uint w = x > y ? x : y;
    }
}
// ----
// Warning: (87-93): Unused local variable.
// Warning: (121-127): Unused local variable.
// Warning: (17-150): Function state mutability can be restricted to pure