diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-17 15:04:39 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-22 19:25:04 +0800 |
commit | 31fa6a24df0e698a2c086a8efb7162fa13c061b8 (patch) | |
tree | a1474b3f17f485bc44322d455188b48d6e810c1d /test/libsolidity/syntaxTests/parsing/while_loop.sol | |
parent | e97f9b6ba85b5cf5d347f1771524d0b0973e00bb (diff) | |
download | dexon-solidity-31fa6a24df0e698a2c086a8efb7162fa13c061b8.tar.gz dexon-solidity-31fa6a24df0e698a2c086a8efb7162fa13c061b8.tar.zst dexon-solidity-31fa6a24df0e698a2c086a8efb7162fa13c061b8.zip |
Move more parser tests to syntax tests
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/while_loop.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/while_loop.sol | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/while_loop.sol b/test/libsolidity/syntaxTests/parsing/while_loop.sol new file mode 100644 index 00000000..129b52e1 --- /dev/null +++ b/test/libsolidity/syntaxTests/parsing/while_loop.sol @@ -0,0 +1,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 |