Adds new test for SourceReferenceExtractor to extract multiline location with a too long first line.

This commit is contained in:
Christian Parpart 2019-01-07 11:56:43 +01:00
parent c7074a365e
commit 9e61dbad07
No known key found for this signature in database
GPG Key ID: 19BC8DD20312C929
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,13 @@
contract C {
function f() returns (byte _b, bytes2 _b2, bytes3 _b3, bytes memory _blit, bytes5 _b5, bytes6 _b6, string memory _str, bytes7 _b7, bytes22 _b22, bytes32 _b32) {
_b = 0x12;
_b2 = 0x1223;
_b5 = hex"043245";
_b6 = hex"2345532532";
_b7 = hex"03252353253253";
_b22 = hex"325235235325325325235325";
_b32 = hex"032523532532523532523532523532";
_blit = hex"123498";
_str = "heidy";
}
}

View File

@ -0,0 +1,6 @@
too_long_line_multiline.sol:2:5: Error: No visibility specified. Did you intend to add "public"?
function f() returns (byte _b, byte ... _b7, bytes22 _b22, bytes32 _b32) {
^ (Relevant source part starts here and spans across multiple lines).
too_long_line_multiline.sol:1:1: Warning: Source file does not specify required compiler version!
contract C {
^ (Relevant source part starts here and spans across multiple lines).

View File

@ -0,0 +1 @@
1