mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Trivial isoltest updates: missing // ---- at the end
This commit is contained in:
committed by
Kamil Śliwak
parent
84c05d35f3
commit
1be07c2b36
@@ -2,3 +2,4 @@ contract C {
|
||||
function f(address) public pure returns (address) {}
|
||||
function g(address payable) public pure returns (address payable) {}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -4,3 +4,4 @@ contract C {
|
||||
address b;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -5,3 +5,4 @@ contract C {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -5,3 +5,4 @@ contract C {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
contract C {
|
||||
address payable constant a = payable(0);
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -3,3 +3,4 @@ library L {
|
||||
contract C {
|
||||
using L for address payable;
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -9,3 +9,4 @@ contract C {
|
||||
a; b; c; d;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -6,3 +6,4 @@ contract C {
|
||||
mapping(uint => address payable) e;
|
||||
mapping(uint => address payable[]) f;
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -6,3 +6,4 @@ contract C {
|
||||
mapping(uint => address payable[]) d;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
contract c {
|
||||
event e(uint[10] a, bytes7[8] indexed b, c[3] x);
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -4,3 +4,4 @@ contract c {
|
||||
struct x { uint[2**20] b; y[1] c; }
|
||||
struct y { uint d; mapping(uint=>x)[] e; }
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -3,3 +3,4 @@ contract C {
|
||||
assembly "evmasm" {}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -5,3 +5,4 @@ contract test {
|
||||
y = x()()()();
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -3,3 +3,4 @@ contract C1 {
|
||||
**/
|
||||
}
|
||||
contract C2 {}
|
||||
// ----
|
||||
|
||||
@@ -26,3 +26,4 @@ contract C {
|
||||
return m_c;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -8,3 +8,4 @@ contract B is A {
|
||||
super.x();
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//
|
||||
contract test
|
||||
{}
|
||||
// ----
|
||||
|
||||
@@ -7,3 +7,4 @@ contract D {
|
||||
return I.Direction.Left;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -10,3 +10,4 @@ library L {
|
||||
return I.Direction.Left;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -7,3 +7,4 @@ contract D {
|
||||
return L.Direction.Left;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -7,3 +7,4 @@ contract D is C {
|
||||
return Direction.Left;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -7,3 +7,4 @@ contract D is I {
|
||||
return Direction.Left;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -5,3 +5,4 @@ contract c {
|
||||
}
|
||||
validEnum a;
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
contract c {
|
||||
event e();
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
contract c {
|
||||
event e(uint a, bytes32 s);
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
contract c {
|
||||
event e(uint a, bytes32 indexed s, bool indexed b);
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// "from" is not a keyword although it is used as a keyword in import directives.
|
||||
contract from {
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -3,3 +3,4 @@ contract test {
|
||||
return g(1);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
contract test {
|
||||
function (uint, uint) internal returns (uint) f1;
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -2,3 +2,4 @@ contract test {
|
||||
function() x;
|
||||
function() y = x;
|
||||
}
|
||||
// ----
|
||||
|
||||
+1
@@ -5,3 +5,4 @@ contract c {
|
||||
}
|
||||
uint256 a;
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
contract test {
|
||||
mapping(address => bytes32) names;
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -4,3 +4,4 @@ contract test {
|
||||
mapping (address => function() external[]) c;
|
||||
function() external[] d;
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -5,3 +5,4 @@ contract test {
|
||||
mapping(bytes32 => test_struct) self_reference;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -4,3 +4,4 @@ contract test {
|
||||
mapping (uint64 => mapping (bytes32 => uint)) complex_mapping;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
contract c {
|
||||
modifier mod { if (msg.sender == 0x0000000000000000000000000000000000000000) _; }
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
contract c {
|
||||
modifier mod(address a) { if (msg.sender == a) _; }
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
contract c {
|
||||
mapping(uint => mapping(uint => int8)[8][][9])[] x;
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -3,3 +3,4 @@ contract C {
|
||||
m = new address payable[](10);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -5,3 +5,4 @@ contract test {
|
||||
uint256 d = 2E10 wei;
|
||||
uint256 e = 2.5e10;
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -5,3 +5,4 @@ contract test {
|
||||
uint256 count;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
Reference in New Issue
Block a user