aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/while_loop.sol
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-05-17 15:04:39 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-05-22 19:25:04 +0800
commit31fa6a24df0e698a2c086a8efb7162fa13c061b8 (patch)
treea1474b3f17f485bc44322d455188b48d6e810c1d /test/libsolidity/syntaxTests/parsing/while_loop.sol
parente97f9b6ba85b5cf5d347f1771524d0b0973e00bb (diff)
downloaddexon-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.sol9
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