Infrastructure for extracting syntax tests in separate test files.

This commit is contained in:
Daniel Kirchner
2018-03-13 11:20:11 +01:00
parent f2614be95f
commit 49eaf7c3fd
15 changed files with 387 additions and 55 deletions
@@ -0,0 +1,6 @@
contract test {
uint256 variable;
uint128 variable;
}
// ----
// DeclarationError: Identifier already declared.
@@ -0,0 +1,8 @@
contract test {
function f() pure public {
uint256 x;
if (true) { uint256 x; }
}
}
// ----
// DeclarationError: Identifier already declared.
@@ -0,0 +1,11 @@
pragma experimental "v0.5.0";
contract test {
function f() pure public {
uint256 x;
if (true) { uint256 x; }
}
}
// ----
// Warning: This declaration shadows an existing declaration.
// Warning: Unused local variable.
// Warning: Unused local variable.
@@ -0,0 +1,6 @@
contract test {
uint256 stateVariable1;
function fun(uint256 arg1) public { uint256 y; y = arg1; }
}
// ----
// Warning: Function state mutability can be restricted to pure