Trivial isoltest updates: missing // ---- at the end

This commit is contained in:
Alex Beregszaszi
2021-04-20 17:38:29 +02:00
committed by Kamil Śliwak
parent 84c05d35f3
commit 1be07c2b36
613 changed files with 613 additions and 0 deletions
@@ -1 +1,2 @@
pragma abicoder v1;
// ----
@@ -1 +1,2 @@
pragma abicoder "v1";
// ----
@@ -1 +1,2 @@
pragma abicoder "v2";
// ----
@@ -1,2 +1,3 @@
pragma abicoder v2;
pragma experimental ABIEncoderV2;
// ----
@@ -1 +1,2 @@
abstract contract A { constructor() {} }
// ----
@@ -9,3 +9,4 @@ contract C {
}
}
// ----
@@ -23,3 +23,4 @@ contract C {
uint[(((2) + 1)) + (((1)))] a14;
uint[((((3) + 1)) + (((1))))%2] a15;
}
// ----
@@ -5,3 +5,4 @@ contract C {
array.pop();
}
}
// ----
@@ -3,3 +3,4 @@ contract C {
x[1:2];
}
}
// ----
@@ -3,3 +3,4 @@ contract C {
x[1:2];
}
}
// ----
@@ -3,3 +3,4 @@ contract C {
return x[1:2];
}
}
// ----
@@ -8,3 +8,4 @@ contract C {
}
function t() public pure returns (uint) { return 7; }
}
// ----
@@ -5,3 +5,4 @@ contract C {
a.double();
}
}
// ----
@@ -5,3 +5,4 @@ contract C {
a.double;
}
}
// ----
@@ -9,3 +9,4 @@ contract D is C
{
function callFoo() override public {}
}
// ----
@@ -1,3 +1,4 @@
abstract contract A {
constructor(function() internal) {}
}
// ----
@@ -4,3 +4,4 @@ abstract contract C {
contract D is C {
constructor() { }
}
// ----
@@ -1 +1,2 @@
contract A { constructor() {} }
// ----
@@ -8,3 +8,4 @@ contract D {
return c;
}
}
// ----
@@ -1,3 +1,4 @@
abstract contract A {
constructor(uint[] storage a) {}
}
// ----
@@ -7,3 +7,4 @@ contract C {
}
}
// ---
// ----
@@ -28,3 +28,4 @@ contract C {
}
// ====
// EVMVersion: >=byzantium
// ----
@@ -22,3 +22,4 @@ contract C {
}
// ====
// EVMVersion: >=byzantium
// ----
@@ -6,3 +6,4 @@ contract C {
{
}
}
// ----
@@ -4,3 +4,4 @@ contract C {
uint[] s;
function f() m1(b = s) m2(b) internal view returns (uint[] storage b) {}
}
// ----
@@ -4,3 +4,4 @@ contract C {
// unreachable comment
}
}
// ----
@@ -6,3 +6,4 @@ contract C {
return;
}
}
// ----
@@ -7,3 +7,4 @@ contract C {
d = bytes(c);
}
}
// ----
@@ -7,3 +7,4 @@ contract C {
d = string(c);
}
}
// ----
@@ -3,3 +3,4 @@ contract test {
return bytes("abc");
}
}
// ----
@@ -6,3 +6,4 @@ contract C {
return g.selector;
}
}
// ----
@@ -6,3 +6,4 @@ contract C {
return g.selector;
}
}
// ----
@@ -6,3 +6,4 @@ contract C {
return g.selector;
}
}
// ----
@@ -8,3 +8,4 @@ contract C {
return g.selector;
}
}
// ----
@@ -5,3 +5,4 @@ contract C {
y = x;
}
}
// ----
@@ -2,3 +2,4 @@ library L {
struct Nested { uint y; }
function c(function(Nested memory) external returns (uint)[] storage) external pure {}
}
// ----
@@ -6,3 +6,4 @@ contract C {
// No data location for events.
event e(uint[]);
}
// ----
@@ -1,3 +1,4 @@
library test {
function f(bytes storage) external {}
}
// ----
@@ -1,3 +1,4 @@
library test {
function f(bytes memory) internal pure {}
}
// ----
@@ -1,3 +1,4 @@
library test {
function f(bytes storage) internal pure {}
}
// ----
@@ -4,3 +4,4 @@ contract C {
szabo = finney;
}
}
// ----
@@ -5,3 +5,4 @@ contract C {
e;
}
}
// ----
@@ -19,3 +19,4 @@ contract Test {
revert B.E();
}
}
// ----
@@ -1,3 +1,4 @@
contract c {
event e(uint indexed a, bytes3 indexed b, bool indexed c, uint indexed d) anonymous;
}
// ----
@@ -5,3 +5,4 @@ contract C {
emit e({b: "abc", a: 8});
}
}
// ----
@@ -5,3 +5,4 @@ contract C is A {
emit A.e({b: "abc", a: 8});
}
}
// ----
@@ -4,3 +4,4 @@ contract C {
emit e();
}
}
// ----
@@ -4,3 +4,4 @@ contract C {
emit Test(this.f);
}
}
// ----
@@ -2,3 +2,4 @@ contract TestIt {
event A();
event A(uint i);
}
// ----
@@ -2,3 +2,4 @@ contract test {
event A(uint);
event A(bytes);
}
// ----
@@ -2,3 +2,4 @@ contract test {
event A(uint);
event A(uint, uint);
}
// ----
@@ -4,3 +4,4 @@ contract A {
contract B is A {
event X(uint);
}
// ----
@@ -2,3 +2,4 @@ contract c {
event e1(uint a, uint e1, uint e2);
event e2(uint a, uint e1, uint e2);
}
// ----
@@ -2,3 +2,4 @@ contract A { event X(uint); }
contract B is A {}
contract C is A {}
contract D is B, C {}
// ----
@@ -4,3 +4,4 @@ contract A {
contract C is A {
fallback() external payable { }
}
// ----
@@ -1,3 +1,4 @@
contract C {
fallback() external payable { }
}
// ----
@@ -2,3 +2,4 @@ contract C {
fallback() external payable { }
function f() internal pure { }
}
// ----
@@ -2,3 +2,4 @@ function f(uint24) {}
function f(uint16) {}
function f(int24) {}
function f(bool) {}
// ----
@@ -6,3 +6,4 @@ abstract contract V is I
{
function b() public view returns(uint256) { return a(); }
}
// ----
@@ -5,3 +5,4 @@ contract C {
}
}
// ----
@@ -8,3 +8,4 @@ contract C {
x.value(42);
}
}
// ----
@@ -4,3 +4,4 @@ contract C {
x{value: 2}(1);
}
}
// ----
@@ -8,3 +8,4 @@ contract C {
f(this.callback);
}
}
// ----
@@ -3,3 +3,4 @@ contract C {
return this.f.address;
}
}
// ----
@@ -4,3 +4,4 @@ contract C {
x;
}
}
// ----
@@ -9,3 +9,4 @@ contract C {
a; b;
}
}
// ----
@@ -5,3 +5,4 @@ contract C {
return g;
}
}
// ----
@@ -3,3 +3,4 @@ contract C {
return g;
}
}
// ----
@@ -6,3 +6,4 @@ library L
}
function f(function(Nested memory) external) external pure {}
}
// ----
@@ -2,3 +2,4 @@ library L {
function f(function(uint) internal returns (uint) /*x*/) pure internal {
}
}
// ----
@@ -5,3 +5,4 @@ contract C {
}
mapping(uint256 => Y) public m;
}
// ----
@@ -4,3 +4,4 @@ contract C {
}
mapping(uint256 => Y) public m;
}
// ----
@@ -7,3 +7,4 @@ contract Test {
return type(A).creationCode;
}
}
// ----
@@ -3,3 +3,4 @@ contract C {
function f() public pure returns (uint) { return 3; }
}
// ----
@@ -1,3 +1,4 @@
contract C {
uint immutable x = 0;
}
// ----
@@ -6,3 +6,4 @@ contract C {
y = x + 1;
}
}
// ----
@@ -10,3 +10,4 @@ contract C {
y = x + 1;
}
}
// ----
@@ -2,3 +2,4 @@
// This test used to throw due to a bug in boost::filesystem.
// See https://github.com/boostorg/filesystem/issues/176
import ".";
// ----
@@ -2,3 +2,4 @@
import "b"; contract C { D d; }
==== Source: b ====
import "a"; contract D { C c; }
// ----
@@ -3,3 +3,4 @@ contract A {} contract B {} contract C { struct S { uint a; } }
==== Source: b ====
import "a" as x; import {B as b, C as c, C} from "a";
contract D is b { function f(c.S memory var1, x.C.S memory var2, C.S memory var3) internal {} }
// ----
@@ -5,3 +5,4 @@ import "a";
==== Source: c ====
import "b";
contract D is C {}
// ----
@@ -2,3 +2,4 @@
contract A {}
==== Source: b ====
library A {}
// ----
@@ -2,3 +2,4 @@
contract A {}
==== Source: b ====
import {A} from "a"; contract B {}
// ----
@@ -3,3 +3,4 @@ contract A {}
==== Source: b ====
import {A} from "a";
struct B { uint256 a; }
// ----
@@ -3,3 +3,4 @@ struct A { uint256 a; }
==== Source: b ====
import {A} from "a";
struct B { uint256 a; }
// ----
@@ -3,3 +3,4 @@ struct A { uint256 a; }
==== Source: b ====
import {A} from "a";
contract B {}
// ----
@@ -2,3 +2,4 @@
contract C {}
==== Source: b ====
import "a"; contract D is C {}
// ----
@@ -4,3 +4,4 @@ import "./dir/b"; contract A is B {}
contract B {}
==== Source: dir/c ====
import "../a"; contract C is A {}
// ----
@@ -2,3 +2,4 @@
contract A {}
==== Source: dir/a/b/c ====
import "../../.././a"; contract B is A {}
// ----
@@ -2,3 +2,4 @@
contract A {}
==== Source: dir/a/b/c ====
import "../../.././a" as x; contract B is x.A { fallback() external { x.A r = x.A(address(20)); r; } }
// ----
@@ -1,2 +1,3 @@
==== Source: a ====
contract C {}
// ----
@@ -13,3 +13,4 @@ contract C {
return (y.mT[0].mS[0], z.mS[0]);
}
}
// ----
@@ -1,2 +1,3 @@
contract A { constructor() { } }
contract B is A { constructor() A() { } }
// ----
@@ -3,3 +3,4 @@ contract Base {
}
contract Derived is Base(2) { }
contract Derived2 is Base, Derived {}
// ----
@@ -4,3 +4,4 @@ contract C {
contract D is C {
fallback() override external {}
}
// ----
@@ -6,3 +6,4 @@ contract D is C {
contract E is D {
fallback() override external {}
}
// ----
@@ -4,3 +4,4 @@ contract C {
contract D is C {
receive() override external payable {}
}
// ----
@@ -6,3 +6,4 @@ contract D is C {
contract E is D {
receive() override external payable {}
}
// ----
@@ -8,3 +8,4 @@ interface SubB is Parent {}
contract C is SubA, SubB {
function test() external override pure returns (uint256) { return 42; }
}
// ----
@@ -13,3 +13,4 @@ interface SubB is Parent {
contract C is SubA, SubB {
function test() external pure override(SubA, SubB) returns (uint256) { return 42; }
}
// ----

Some files were not shown because too many files have changed in this diff Show More