aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/while_loop.sol
blob: 129b52e1dd0d00680ca281fe3eaaeb03d81f9004 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract test {
    function fun(uint256 a) {
        while (true) { uint256 x = 1; break; continue; } x = 9;
    }
}
// ----
// Warning: (20-115): No visibility specified. Defaulting to "public". 
// Warning: (33-42): Unused function parameter. Remove or comment out the variable name to silence this warning.
// Warning: (20-115): Function state mutability can be restricted to pure