Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #2317 from ethereum/keccak256 | chriseth | 2017-05-31 | 5 | -69/+133 |
|\ | | | | | Use keccak256 in tests and replace the SHA3 instruction in assembly | ||||
| * | Add inline assembly test for sha3/keccak256 | Alex Beregszaszi | 2017-05-30 | 2 | -0/+47 |
| | | |||||
| * | Add test for sha3() == keccak256() | Alex Beregszaszi | 2017-05-30 | 1 | -0/+17 |
| | | |||||
| * | Use keccak256() in tests (and not sha3()) | Alex Beregszaszi | 2017-05-30 | 4 | -54/+54 |
| | | |||||
| * | Rename the SHA3 assembly instruction to KECCAK256 | Alex Beregszaszi | 2017-05-30 | 1 | -15/+15 |
| | | |||||
* | | Refactor error reporting | Rhett Aultman | 2017-05-30 | 4 | -23/+31 |
|/ | | | | | | | | | This commit introduces ErrorReporter, a utility class which consolidates all of the error logging functionality into a common set of functions. It also replaces all direct interactions with an ErrorList with calls to an ErrorReporter. This commit resolves issue #2209 | ||||
* | Fix expected message in test case | Alex Beregszaszi | 2017-05-26 | 1 | -1/+1 |
| | |||||
* | Better error messages for invalid switch cases | Alex Beregszaszi | 2017-05-26 | 1 | -2/+2 |
| | |||||
* | Disallow instructions as a switch expression | Alex Beregszaszi | 2017-05-26 | 1 | -1/+1 |
| | |||||
* | Add tests | Alex Beregszaszi | 2017-05-26 | 1 | -0/+52 |
| | |||||
* | Uniform error messages | Alex Beregszaszi | 2017-05-24 | 1 | -1/+1 |
| | |||||
* | Add tests | Alex Beregszaszi | 2017-05-24 | 1 | -0/+11 |
| | |||||
* | Validate metadata JSON too | Alex Beregszaszi | 2017-05-24 | 1 | -1/+4 |
| | |||||
* | Split out metadata test into its own file | Alex Beregszaszi | 2017-05-24 | 2 | -20/+60 |
| | |||||
* | Add tests | Alex Beregszaszi | 2017-05-23 | 1 | -0/+26 |
| | |||||
* | Merge pull request #2265 from roadriverrail/inline_asm_unused_warning | chriseth | 2017-05-22 | 1 | -0/+14 |
|\ | | | | | Analyze InlineAssembly for variable use | ||||
| * | Analyze InlineAssembly for variable use | Rhett Aultman | 2017-05-22 | 1 | -0/+14 |
| | | | | | | | | | | The unused variable checker in StaticAnalyzer did not conssider InlineAssembly objects. This commit introduces that missing feature. | ||||
* | | Merge pull request #1810 from ethereum/compactJson | chriseth | 2017-05-22 | 3 | -17/+21 |
|\ \ | |/ |/| | Compact format for AST-Json. | ||||
| * | testsuite adjustment | djudjuu | 2017-05-19 | 2 | -5/+7 |
| | | |||||
| * | Compact format for AST-Json with backwards compatibility | chriseth | 2017-05-17 | 2 | -14/+16 |
| | | |||||
* | | Merge pull request #2262 from ethereum/interface-cleanup | chriseth | 2017-05-19 | 2 | -3/+3 |
|\ \ | | | | | | | Cleanup the external interfaces (ABI and Natspec) | ||||
| * | | Rename CompilerStack.metadata to CompilerStack.natspec | Alex Beregszaszi | 2017-05-19 | 1 | -2/+2 |
| | | | |||||
| * | | Use CompilerStack.contractABI directly | Alex Beregszaszi | 2017-05-19 | 1 | -1/+1 |
| |/ | |||||
* / | Add tests for bool literal | Alex Beregszaszi | 2017-05-19 | 1 | -0/+6 |
|/ | |||||
* | Run in optimizer mode when requested | Alex Beregszaszi | 2017-05-06 | 1 | -1/+2 |
| | |||||
* | Split out common metadata validation code | Alex Beregszaszi | 2017-05-06 | 2 | -98/+8 |
| | |||||
* | Add basic test for jsonCompiler | Alex Beregszaszi | 2017-05-06 | 1 | -0/+143 |
| | |||||
* | Merge pull request #2194 from ethereum/removeerrorlabel | chriseth | 2017-05-05 | 2 | -16/+1 |
|\ | | | | | Remove error label / invalid jump label. | ||||
| * | Remove error label / invalid jump label. | chriseth | 2017-04-28 | 2 | -16/+1 |
| | | |||||
* | | Merge pull request #2206 from ethereum/fixoptimizer | chriseth | 2017-05-03 | 1 | -19/+31 |
|\ \ | | | | | | | Constant optimizer fix | ||||
| * | | Stricter tests for constant optimization. | chriseth | 2017-05-02 | 1 | -19/+31 |
| | | | |||||
* | | | Fix tests. | chriseth | 2017-05-03 | 1 | -0/+3 |
| | | | |||||
* | | | Cleanup, style and additional test. | chriseth | 2017-05-03 | 1 | -2/+10 |
| | | | |||||
* | | | More strict tests. | chriseth | 2017-05-03 | 1 | -7/+7 |
| | | | |||||
* | | | Treat returns with expressions as return param use | Rhett Aultman | 2017-05-03 | 1 | -0/+16 |
| | | | | | | | | | | | | | | | | | | | | | There are many cases of code where the return parameters exist mostly as a form of documentation. This change ensures that they do not have to be used in the function body so long as there is a return supplying values | ||||
* | | | Warn on unused local variables | Rhett Aultman | 2017-05-03 | 1 | -31/+154 |
| | | | | | | | | | | | | | | | | | | Analyze functions for all local variables, parameters, and named return variables which are never used in the function, and issue a warning. | ||||
* | | | Merge pull request #2211 from ethereum/jsonio-fixes | Alex Beregszaszi | 2017-05-02 | 1 | -6/+6 |
|\ \ \ | | | | | | | | | Follow the JSON I/O spec closely | ||||
| * | | | Follow the JSON I/O spec closely | Alex Beregszaszi | 2017-05-02 | 1 | -6/+6 |
| |/ / | |||||
* | | | Style and stricter tests. | chriseth | 2017-05-02 | 1 | -1/+9 |
| | | | |||||
* | | | Deprecate use of unary '+' | Rhett Aultman | 2017-04-29 | 1 | -1/+10 |
|/ / | | | | | | | | | | | | | The unary '+' serves no meaningful purpose in Solidity and it makes it possible to produce typos with dagerous implications (e.g. 'a =+5 '), so we are deprecating it. The SyntaxChecker currently issues warnings on the unary '+' but will still compile it for now. | ||||
* | | Merge pull request #2171 from ethereum/splitParseAndAnalyze | chriseth | 2017-04-28 | 4 | -16/+19 |
|\ \ | |/ |/| | refactoring parse() into two separate functions | ||||
| * | enumchecks not working | djuju | 2017-04-28 | 1 | -0/+3 |
| | | |||||
| * | refactoring parse() into two separate functions | djuju | 2017-04-27 | 3 | -16/+16 |
| | | |||||
* | | Remove parentheses from around function return parameters | Alex Beregszaszi | 2017-04-27 | 1 | -6/+6 |
| | | |||||
* | | Merge pull request #1711 from ethereum/asmfunctions | chriseth | 2017-04-26 | 3 | -38/+148 |
|\ \ | |/ |/| | Assembly: Analysis stage for functions. | ||||
| * | Fix storage access tests. | chriseth | 2017-04-25 | 1 | -5/+5 |
| | | |||||
| * | Fix test build | Alex Beregszaszi | 2017-04-25 | 1 | -0/+1 |
| | | |||||
| * | Storage access from inline assembly. | chriseth | 2017-04-25 | 1 | -3/+33 |
| | | |||||
| * | Convert storge access tests to new explicit slot / offset access. | chriseth | 2017-04-25 | 1 | -5/+9 |
| | | |||||
| * | Review comments. | chriseth | 2017-04-25 | 2 | -0/+35 |
| | | |||||
| * | Use raw string for tests. | chriseth | 2017-04-25 | 1 | -3/+15 |
| | | |||||
| * | Make tests comply with stack height checks. | chriseth | 2017-04-25 | 3 | -27/+26 |
| | | |||||
| * | Use actual type checking phase of assembler. | chriseth | 2017-04-25 | 1 | -1/+1 |
| | | |||||
| * | Refactor assembly analysis into scope filling and checking. | chriseth | 2017-04-25 | 1 | -10/+39 |
| | | |||||
* | | Remove a test about SELFDESTRUCT because the test harness obtains refund ↵ | Yoichi Hirai | 2017-04-25 | 1 | -13/+0 |
| | | | | | | | | while the gas meter should not assume the refund. | ||||
* | | test: fix invalid signatures | Yoichi Hirai | 2017-04-25 | 1 | -2/+2 |
| | | |||||
* | | test: add a test case about the gas cost of EXTCODESIZE | Yoichi Hirai | 2017-04-25 | 1 | -0/+15 |
| | | |||||
* | | test: add a failing test case about the gas cost of SUICIDE opcode | Yoichi Hirai | 2017-04-25 | 1 | -0/+13 |
| | | |||||
* | | Add a failing test about the gas cost of BALANCE | Yoichi Hirai | 2017-04-25 | 1 | -0/+13 |
| | | |||||
* | | test: add a test about gas costs of EXP | Yoichi Hirai | 2017-04-25 | 1 | -0/+17 |
|/ | |||||
* | More pure tests. | chriseth | 2017-04-25 | 1 | -0/+8 |
| | |||||
* | Test for side-effect free condition. | chriseth | 2017-04-22 | 1 | -0/+13 |
| | |||||
* | Change error message. | chriseth | 2017-04-21 | 1 | -2/+2 |
| | |||||
* | Warn about side-effect free statements. | chriseth | 2017-04-21 | 1 | -15/+43 |
| | |||||
* | Add test for legacyAST | Alex Beregszaszi | 2017-04-21 | 1 | -1/+6 |
| | |||||
* | Add test for bytecode | Alex Beregszaszi | 2017-04-21 | 1 | -0/+21 |
| | |||||
* | Add compilation test and verify output | Alex Beregszaszi | 2017-04-21 | 1 | -0/+79 |
| | |||||
* | Trigger cases by the JSON (and not string) interface | Alex Beregszaszi | 2017-04-21 | 1 | -1/+11 |
| | |||||
* | Add basic tests for StandardCompiler | Alex Beregszaszi | 2017-04-21 | 1 | -0/+155 |
| | |||||
* | Check that contract inheriting from base with unimplemented constructor is ↵ | chriseth | 2017-03-22 | 1 | -1/+6 |
| | | | | abstract. | ||||
* | Disallow private or internal functions in interfaces | Alex Beregszaszi | 2017-03-18 | 1 | -0/+20 |
| | |||||
* | Add more complex tests for interfaces | Alex Beregszaszi | 2017-03-18 | 2 | -0/+52 |
| | |||||
* | Disallow constructor in interfaces | Alex Beregszaszi | 2017-03-18 | 1 | -1/+1 |
| | |||||
* | Disallow enums in interfaces | Alex Beregszaszi | 2017-03-18 | 1 | -0/+10 |
| | |||||
* | Use declared instead of defined | Alex Beregszaszi | 2017-03-18 | 1 | -1/+1 |
| | |||||
* | Add tests for interfaces | Alex Beregszaszi | 2017-03-18 | 2 | -0/+107 |
| | |||||
* | Add ContractKind to ContractDefinition | Alex Beregszaszi | 2017-03-18 | 1 | -1/+1 |
| | |||||
* | Change references to FunctionType::Location | Alex Beregszaszi | 2017-03-16 | 1 | -1/+1 |
| | |||||
* | Merge pull request #1698 from ethereum/exp-notation | chriseth | 2017-03-15 | 4 | -25/+64 |
|\ | | | | | Fix scientific notation in number literals | ||||
| * | Add tests for negative base | Alex Beregszaszi | 2017-03-15 | 1 | -0/+12 |
| | | |||||
| * | Add tests for fractional numbers in exponential notation | Alex Beregszaszi | 2017-03-15 | 2 | -0/+5 |
| | | |||||
| * | Add tests for scientific notation | Alex Beregszaszi | 2017-03-15 | 4 | -25/+47 |
| | | |||||
* | | Mention 'transfer' in warning about unchecked 'send'. | chriseth | 2017-03-15 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #1729 from ethereum/constantvariables | Yoichi Hirai | 2017-03-15 | 2 | -7/+136 |
|\ \ | | | | | | | Only allow pure expressions for constant state variables. | ||||
| * | | Turn non-constant constants error into warning. | chriseth | 2017-03-15 | 1 | -2/+4 |
| | | | |||||
| * | | Disallow constants that are neither value types nor strings. | chriseth | 2017-03-13 | 2 | -26/+44 |
| | | | |||||
| * | | Allow enum values for constants. | chriseth | 2017-03-13 | 1 | -1/+0 |
| | | | |||||
| * | | End to end tests for constants. | chriseth | 2017-03-13 | 1 | -0/+50 |
| | | | |||||
| * | | Type checking for pure expressions. | chriseth | 2017-03-13 | 1 | -10/+20 |
| | | | |||||
| * | | Some new tests for constant variables. | chriseth | 2017-03-13 | 1 | -0/+50 |
| | | | |||||
* | | | Require and Assert. | chriseth | 2017-03-14 | 1 | -18/+24 |
|/ / | |||||
* | | Merge pull request #1751 from ethereum/warnLiteralExpBase | Yoichi Hirai | 2017-03-11 | 1 | -0/+30 |
|\ \ | |/ |/| | Warn if base of exponentiation operation is a literal. | ||||
| * | Tests for warning about literal constant base in exponentition. | chriseth | 2017-03-07 | 1 | -0/+30 |
| | | |||||
* | | Merge pull request #1747 from ethereum/fixICEInternalConstructor | Yoichi Hirai | 2017-03-09 | 1 | -0/+18 |
|\ \ | | | | | | | Move privateness of constructor into AST itself. | ||||
| * | | Test for trying to construct an inconstructible contract before its definition. | chriseth | 2017-03-06 | 1 | -0/+18 |
| |/ | |||||
* | | Merge pull request #1748 from ethereum/singletonArray | chriseth | 2017-03-08 | 1 | -0/+14 |
|\ \ | | | | | | | Use mobile type for singleton array. | ||||
| * | | Test for array singletons. | chriseth | 2017-03-06 | 1 | -0/+14 |
| |/ | |||||
* | | Tests for no compound assignment for tuples. | chriseth | 2017-03-08 | 1 | -0/+12 |
| | | |||||
* | | Merge pull request #1750 from ethereum/asmoctal | Yoichi Hirai | 2017-03-08 | 1 | -0/+18 |
|\ \ | | | | | | | Disallow octal numbers in parser. | ||||
| * | | Disallow octal literals. | chriseth | 2017-03-07 | 1 | -0/+18 |
| |/ | |||||
* | | Merge pull request #1736 from ethereum/boundoptimizer | Yoichi Hirai | 2017-03-08 | 1 | -0/+62 |
|\ \ | | | | | | | Add upper bound for computing constants. | ||||
| * | | Tests for optimizing constants. | chriseth | 2017-03-03 | 1 | -0/+62 |
| | | | |||||
* | | | Merge pull request #1733 from ethereum/selfReferentialConstant | chriseth | 2017-03-07 | 1 | -8/+41 |
|\ \ \ | | | | | | | | | Detect cyclic dependencies between constants. | ||||
| * | | | Check for circular references in constant variables. | chriseth | 2017-03-06 | 1 | -8/+13 |
| | | | | |||||
| * | | | Tests for cyclic dependencies between constants. | chriseth | 2017-03-06 | 1 | -0/+28 |
| | |/ | |/| | |||||
* / | | Test for uninitialized mapping. | chriseth | 2017-03-06 | 1 | -0/+24 |
|/ / | |||||
* | | Merge pull request #1702 from ethereum/assertError | Yoichi Hirai | 2017-03-04 | 1 | -18/+18 |
|\ \ | |/ |/| | Change effect of assert to invalid opcode. | ||||
| * | Remove assert for now. | chriseth | 2017-02-24 | 1 | -18/+18 |
| | | |||||
* | | Test for declaring variable with empty tuple type. | chriseth | 2017-03-02 | 1 | -0/+13 |
| | | |||||
* | | Test case for external function type with calldata argument. | chriseth | 2017-03-01 | 1 | -0/+17 |
| | | |||||
* | | Merge pull request #1651 from ethereum/transfer-method | chriseth | 2017-02-24 | 2 | -0/+54 |
|\ \ | | | | | | | Add address.transfer(value) | ||||
| * | | Disallow setting .gas() on .transfer() | Alex Beregszaszi | 2017-02-24 | 1 | -17/+0 |
| | | | |||||
| * | | Fix test for gas overloading in .transfer() | Alex Beregszaszi | 2017-02-24 | 1 | -2/+13 |
| | | | |||||
| * | | Support gas modifier on addr.transfer() | Alex Beregszaszi | 2017-02-24 | 1 | -0/+6 |
| | | | |||||
| * | | Add type checking test for address methods | Alex Beregszaszi | 2017-02-24 | 1 | -0/+18 |
| | | | |||||
| * | | Add test for address.transfer() | Alex Beregszaszi | 2017-02-24 | 1 | -0/+36 |
| | | | |||||
* | | | Merge pull request #1710 from ethereum/strictasmtests | chriseth | 2017-02-24 | 1 | -30/+69 |
|\ \ \ | |/ / |/| | | Check error messages for assembly tests. | ||||
| * | | Fix compiler warning. | chriseth | 2017-02-20 | 1 | -1/+1 |
| | | | |||||
| * | | Also check imbalanced stack. | chriseth | 2017-02-20 | 1 | -2/+3 |
| | | | |||||
| * | | Check error messages for assembly tests. | chriseth | 2017-02-17 | 1 | -29/+67 |
| | | | |||||
* | | | Test for unbalanced stack due to loading two values from outside. | chriseth | 2017-02-20 | 1 | -0/+13 |
|/ / | |||||
* | | Merge pull request #1627 from ethereum/asmfunctions | chriseth | 2017-02-17 | 1 | -0/+25 |
|\ \ | | | | | | | Parsing assembly function definitions and calls. | ||||
| * | | More tests. | chriseth | 2017-02-16 | 1 | -0/+10 |
| | | | |||||
| * | | Parsing function calls. | chriseth | 2017-02-16 | 1 | -0/+5 |
| | | | |||||
| * | | Parsing function definitions. | chriseth | 2017-02-16 | 1 | -0/+10 |
| |/ | |||||
* / | Test case. | chriseth | 2017-02-16 | 1 | -0/+16 |
|/ | |||||
* | Test for unicode string literals. | chriseth | 2017-02-15 | 1 | -0/+11 |
| | |||||
* | Tests for printing assembly. | chriseth | 2017-02-14 | 1 | -0/+56 |
| | |||||
* | Extract scopes into compiler stack. | chriseth | 2017-02-14 | 3 | -3/+6 |
| | |||||
* | Refactor NameAndTypeResolver and SyntaxChecker to allow other entry points. | chriseth | 2017-02-14 | 1 | -1/+1 |
| | |||||
* | Merge pull request #1661 from ethereum/asm-revert | chriseth | 2017-02-13 | 2 | -0/+29 |
|\ | | | | | Implement REVERT (EIP140) | ||||
| * | Check for state changes in revert() tests | Alex Beregszaszi | 2017-02-11 | 1 | -0/+5 |
| | | |||||
| * | Add tests for revert() | Alex Beregszaszi | 2017-02-11 | 2 | -0/+24 |
| | | |||||
* | | Merge pull request #1676 from ethereum/test-modifytimestamp | chriseth | 2017-02-13 | 1 | -2/+8 |
|\ \ | |/ |/| | Add blockTimestamp and do not rely on mining time (soltest) | ||||
| * | Compare start/end timestamp | Alex Beregszaszi | 2017-02-10 | 1 | -1/+4 |
| | | |||||
| * | Do not use modifyTimestamp where not needed | Alex Beregszaszi | 2017-02-10 | 1 | -2/+5 |
| | | |||||
* | | Add tests for assert() | Alex Beregszaszi | 2017-02-10 | 1 | -0/+19 |
|/ | |||||
* | Disallow arrays with negative length | Alex Beregszaszi | 2017-02-02 | 1 | -0/+10 |
| | |||||
* | Cover both failure cases | Alex Beregszaszi | 2017-02-02 | 1 | -1/+13 |
| | |||||
* | Add more tests for function type conversion | Alex Beregszaszi | 2017-02-01 | 2 | -1/+32 |
| | |||||
* | Add tests for explicity fuction type to address casting | Alex Beregszaszi | 2017-02-01 | 1 | -0/+12 |
| | |||||
* | Add tests for invalid instruction | Alex Beregszaszi | 2017-01-28 | 2 | -0/+20 |
| | |||||
* | Merge pull request #1598 from wuestholz/develop | chriseth | 2017-01-27 | 2 | -4/+10 |
|\ | | | | | Change translation of implicit throws | ||||
| * | Address feedback from code review. | Valentin Wüstholz | 2017-01-26 | 2 | -9/+5 |
| | | |||||
| * | Change translation of implicit throws (issue #1589). | Valentin Wüstholz | 2017-01-26 | 2 | -4/+14 |
| | | | | | | | | | | | | | | This adds a new invalid instruction that is used for encoding implicit throws that are emitted by the compiler. This makes it possible to distinguish such runtime errors from user-provided, explicit throws. | ||||
* | | Merge pull request #1451 from LefterisJP/fix_build | chriseth | 2017-01-27 | 1 | -3/+68 |
|\ \ | | | | | | | Accept any kind of whitespace after natspec tags | ||||
| * | | Tests for natspect parsing failure cases | Lefteris Karapetsas | 2017-01-27 | 1 | -0/+42 |
| | | | |||||
| * | | Doc tags followed by newline are now parsed properly | Lefteris Karapetsas | 2017-01-27 | 1 | -2/+2 |
| | | | |||||
| * | | Fix and better output for tests | Lefteris Karapetsas | 2017-01-25 | 1 | -1/+1 |
| | | | |||||
| * | | Accept any kind of whitespace after natspec tags | Lefteris Karapetsas | 2017-01-25 | 1 | -0/+23 |
| | | | |||||
* | | | Refactor json return type generation. | chriseth | 2017-01-27 | 1 | -11/+11 |
| |/ |/| | |||||
* | | Merge pull request #1604 from ethereum/checksums | Alex Beregszaszi | 2017-01-26 | 1 | -0/+49 |
|\ \ | | | | | | | Warn about invalid checksums of addresses. | ||||
| * | | Warn about invalid checksums of addresses. | chriseth | 2017-01-25 | 1 | -0/+49 |
| |/ | |||||
* | | Update error message. | chriseth | 2017-01-26 | 1 | -1/+1 |
| | | |||||
* | | Disallow assignment to non-identifiers. | chriseth | 2017-01-26 | 1 | -0/+6 |
| | | |||||
* | | Add test for assignment. | chriseth | 2017-01-26 | 1 | -1/+7 |
| | | |||||
* | | Moved test. | chriseth | 2017-01-26 | 2 | -14/+6 |
| | | |||||
* | | Add test for shadowing inline assembly instruction | Alex Beregszaszi | 2017-01-25 | 1 | -0/+13 |
|/ | |||||
* | Test double inclusion of bytecode. | chriseth | 2017-01-25 | 1 | -0/+29 |
| | |||||
* | Test for initializing recursive structs. | chriseth | 2017-01-24 | 1 | -0/+22 |
| | |||||
* | Merge pull request #1245 from ethereum/1215 | chriseth | 2017-01-24 | 2 | -0/+157 |
|\ | | | | | Allow multiple events of the same name | ||||
| * | test: add tests about functions and events of the same name | Yoichi Hirai | 2017-01-23 | 1 | -0/+47 |
| | | |||||
| * | test: add a test case about inheriting multiple events of the same name | Yoichi Hirai | 2017-01-23 | 1 | -0/+52 |
| | | |||||
| * | test: somehow log counting system has changed | Yoichi Hirai | 2017-01-23 | 1 | -10/+10 |
| | | |||||
| * | test: check the results of function calls in the test for multiple events of ↵ | Yoichi Hirai | 2017-01-23 | 1 | -6/+9 |
| | | | | | | | | the same name | ||||
| * | test: fixing inconsistent usage of end-to-end test framework | Yoichi Hirai | 2017-01-23 | 1 | -4/+7 |
| | | |||||
| * | test: Add an end-to-end test about multiple events of the same name | Yoichi Hirai | 2017-01-23 | 1 | -0/+41 |
| | | | | | | | | See #1215 | ||||
| * | test: Add a test for #1215 | Yoichi Hirai | 2017-01-23 | 1 | -0/+11 |
| | | | | | | | | using the original example from @pipermerriam | ||||
* | | Add tests for internal constructor. | chriseth | 2017-01-21 | 2 | -0/+36 |
|/ | |||||
* | Reset AST node IDs between compilation runs. | chriseth | 2017-01-20 | 1 | -0/+1 |
| | |||||
* | Properly escape user strings and lists. | chriseth | 2017-01-19 | 1 | -12/+12 |
| | |||||
* | Type identifiers. | chriseth | 2017-01-19 | 1 | -0/+66 |
| | |||||
* | Provide fallback for linking. | chriseth | 2017-01-19 | 1 | -12/+12 |
| | |||||
* | Revert "Fix contract lookup in tests" | Rhett Aultman | 2017-01-17 | 2 | -7/+3 |
| | | | | This reverts commit f8914c6b281f398d6084f10708233bf79d633ef0. | ||||
* | Modify library collision test | Rhett Aultman | 2017-01-17 | 1 | -0/+1 |
| | | | | | Since libaraies no longer collide on name but on fully-qualified name, you can only induce collision by colliding them as idenfitiers. | ||||
* | Revert "Move clashing libraries to common source in test" | Rhett Aultman | 2017-01-17 | 1 | -1/+2 |
| | | | | This reverts commit c4a9ca5cfe7a8b4ba9d2d84392c57d5eefacd1f7. | ||||
* | Use fully-qualified names for linking, too | Rhett Aultman | 2017-01-17 | 1 | -12/+12 |
| | | | | | | | | | | | | | | | Using libraries leaves behind a library link reference in the binary which the linker must later resolve. These link references were still being generated by name and not by fully-qualified name. This would lead to a link-time collision between two libraries having the same name but in different source units. This change changes linker symbols over to fully-qualified names, which resolves that issue. This does potentially introduce a new problem, which is that linker symbols appear to be limited to 36 characters and are truncated. Storing paths extends the average symbol size, and it would be great if truncation was from the tail rather than the head. | ||||
* | Fix contract lookup in tests | Rhett Aultman | 2017-01-17 | 2 | -3/+7 |
| | | | | | | The fully-qualified name of a contract with no source unit is :<Name> instead of just <Name>, so the test system needed to be adjusted accordingly. | ||||
* | Move clashing libraries to common source in test | Rhett Aultman | 2017-01-17 | 1 | -2/+1 |
| | | | | | | Since contracts and libraries only collide if they share a common source file now, this test only works if both libraries are in the same source. | ||||
* | Merge pull request #1479 from ethereum/function_variable_mixin | chriseth | 2017-01-13 | 2 | -56/+25 |
|\ | | | | | Disallow mixin of functions and attributes under the same name | ||||
| * | test: allow multiple errors in modifier-function overriding | Yoichi Hirai | 2017-01-12 | 1 | -2/+6 |
| | | |||||
| * | analysis: allow some shadowings explicitly | Yoichi Hirai | 2017-01-12 | 2 | -56/+21 |
| | | |||||
* | | fixed | VoR0220 | 2017-01-12 | 1 | -2/+2 |
| | | | | | | | | Signed-off-by: VoR0220 <rj@erisindustries.com> | ||||
* | | added fix and a test for order independence of nested prefixing | VoR0220 | 2017-01-12 | 1 | -0/+18 |
| | | | | | | | | Signed-off-by: VoR0220 <rj@erisindustries.com> | ||||
* | | fixed test and added solution | VoR0220 | 2017-01-09 | 1 | -2/+2 |
| | | | | | | | | Signed-off-by: VoR0220 <rj@erisindustries.com> | ||||
* | | added test | VoR0220 | 2017-01-09 | 1 | -0/+11 |
|/ | | | | Signed-off-by: VoR0220 <rj@erisindustries.com> | ||||
* | test: add a test importing a file name starting with a period | Yoichi Hirai | 2017-01-04 | 1 | -0/+8 |
| | |||||
* | test: add a test case for #1286 | Yoichi Hirai | 2017-01-03 | 1 | -0/+22 |
| | |||||
* | Merge pull request #1487 from ethereum/shift-ops | Yoichi Hirai | 2016-12-14 | 1 | -0/+390 |
|\ | | | | | Shift operators | ||||
| * | Fix tests. | chriseth | 2016-12-14 | 1 | -5/+5 |
| | | |||||
| * | test: add tests that tries different types on <<= | Yoichi Hirai | 2016-12-13 | 1 | -0/+18 |
| | | |||||
| * | Tests for bytes. | chriseth | 2016-12-12 | 1 | -0/+38 |
| | | |||||
| * | Correct test expectations. | chriseth | 2016-12-12 | 1 | -3/+5 |
| | | |||||
| * | Cleaner shift handling and type conversion for binary operations. | chriseth | 2016-12-12 | 1 | -3/+22 |
| | | |||||
| * | Type after shift should be type of left operand. | chriseth | 2016-12-12 | 1 | -0/+15 |
| | | |||||
| * | Support bitshifting in variables | Alex Beregszaszi | 2016-12-12 | 1 | -0/+298 |
| | | |||||
* | | Improve error message when trying to modify constant variables | Federico Bond | 2016-12-13 | 1 | -0/+11 |
|/ | |||||
* | Warn about using msg.value in non-payable function | Federico Bond | 2016-12-09 | 1 | -1/+89 |
| | |||||
* | Merge pull request #1351 from ethereum/truncate_bit | chriseth | 2016-12-08 | 2 | -1/+29 |
|\ | | | | | Truncate a boolean from calldata into one bit | ||||
| * | codegen: clean any data from the input | Yoichi Hirai | 2016-12-01 | 1 | -1/+1 |
| | | |||||
| * | test: add a test that witnesses #1318 | Yoichi Hirai | 2016-12-01 | 1 | -0/+28 |
| | | |||||
* | | Merge pull request #1412 from ethereum/disallow-multiple-errors | chriseth | 2016-12-08 | 1 | -25/+113 |
|\ \ | | | | | | | disallow more than one errors in name and type tests | ||||
| * | | test: either fix tests to raise just one error, or mark them as raising ↵ | Yoichi Hirai | 2016-12-05 | 1 | -32/+112 |
| | | | | | | | | | | | | multiple errors | ||||
| * | | test: disallow more than one errors in name and type tests | Yoichi Hirai | 2016-12-05 | 1 | -0/+8 |
| | | | |||||
* | | | test: check error messages in parser tests | Yoichi Hirai | 2016-12-07 | 2 | -24/+49 |
|/ / | |||||
* | | Migrate remaining source code in tests to R literals | Federico Bond | 2016-12-04 | 4 | -592/+810 |
| | | |||||
* | | Count instructions without metadata hash. | chriseth | 2016-12-01 | 1 | -10/+22 |
| | | |||||
* | | Submit library addresses to the compiler in tests (and not link afterwards) | Alex Beregszaszi | 2016-12-01 | 1 | -2/+1 |
| | | |||||
* | | Remove unneeded optimised test from EndToEndTest | Alex Beregszaszi | 2016-12-01 | 1 | -7/+0 |
| | | |||||
* | | Optimizer tests to not interfere with the optimiser flag | Alex Beregszaszi | 2016-12-01 | 1 | -11/+24 |
| | | |||||
* | | Fix tests | chriseth | 2016-12-01 | 1 | -2/+5 |
| | | |||||
* | | Use CBOR encoding. | chriseth | 2016-12-01 | 1 | -1/+1 |
| | | |||||
* | | Fix tests. | chriseth | 2016-12-01 | 1 | -11/+0 |
| | | |||||
* | | Add test. | chriseth | 2016-12-01 | 1 | -2/+22 |
| | | |||||
* | | Metadata stamp. | chriseth | 2016-12-01 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #1462 from ethereum/fix-incorrect-assertion | chriseth | 2016-12-01 | 1 | -1/+1 |
|\ \ | | | | | | | codegen: assertion did not assert non-nullness | ||||
| * | | test: more precise expectation about the error for assigning into storage in ↵ | Yoichi Hirai | 2016-12-01 | 1 | -1/+1 |
| | | | | | | | | | | | | inline assembly | ||||
* | | | Merge pull request #1461 from ethereum/reference-not-pointer | chriseth | 2016-12-01 | 1 | -7/+7 |
|\ \ \ | | | | | | | | | test: replace a pointer argument by a reference | ||||
| * | | | test: change retrieveFunctionBySignature to take a constant reference rather ↵ | Yoichi Hirai | 2016-12-01 | 1 | -7/+7 |
| |/ / | | | | | | | | | | | | | | | | | | | than a pointer The function `retrieveFunctionBySignature` expected the argument to be a non-null pointer. This commit makes this assumption more explicit. | ||||
* | | | Merge pull request #1458 from federicobond/r-literals | chriseth | 2016-12-01 | 2 | -719/+936 |
|\ \ \ | | | | | | | | | Use more R string literals in tests | ||||
| * | | | Use more R string literals in tests | Federico Bond | 2016-12-01 | 2 | -719/+936 |
| | |/ | |/| | |||||
* | | | Merge pull request #1454 from ethereum/end-of-comment | chriseth | 2016-12-01 | 2 | -0/+25 |
|\ \ \ | |_|/ |/| | | parser: recognize an end of comment of the form `**/` | ||||
| * | | Test that contracts separated by comments are compiled | Alex Beregszaszi | 2016-12-01 | 1 | -0/+12 |
| | | | |||||
| * | | parser: recognize an end of comment of the form `**/` at the end of a ↵ | Yoichi Hirai | 2016-12-01 | 1 | -0/+13 |
| |/ | | | | | | | | | | | multi-line doc comment This fixes #1433 | ||||
* / | Fix typos (existant -> existent) | Federico Bond | 2016-12-01 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #1442 from ethereum/lll-testing | Alex Beregszaszi | 2016-11-30 | 5 | -422/+91 |
|\ | | | | | LLL: introduce testing framework | ||||
| * | Rename testSolidityAgainstCpp* to testContractAgainstCpp* | Alex Beregszaszi | 2016-11-30 | 1 | -75/+75 |
| | | |||||
| * | Move ExecutionFramework to the dev::test namespace | Alex Beregszaszi | 2016-11-30 | 5 | -4/+6 |
| | | |||||
| * | Split out Solidity-specific part of ExecutionFramework | Alex Beregszaszi | 2016-11-30 | 5 | -344/+11 |
| | | |||||
* | | Fix sub-0 optimiser test | Alex Beregszaszi | 2016-11-30 | 1 | -3/+4 |
| | | |||||
* | | Update SolidityOptimizer.cpp | chriseth | 2016-11-30 | 1 | -3/+3 |
| | | |||||
* | | Add test for SUB with 0 optimisation | Alex Beregszaszi | 2016-11-30 | 1 | -0/+22 |
|/ | |||||
* | Merge pull request #1429 from ethereum/unreachablepeephole | chriseth | 2016-11-25 | 1 | -5/+43 |
|\ | | | | | Some dead code elimination | ||||
| * | Peephole optimizer for unreacheable code. | chriseth | 2016-11-25 | 1 | -5/+43 |
| | | |||||
* | | Merge pull request #1381 from ethereum/overflown_enum_compared | chriseth | 2016-11-25 | 1 | -0/+96 |
|\ \ | |/ |/| | Enum overflow checking before writing to storage | ||||
| * | test: add a test that stores an invalid enum value | Yoichi Hirai | 2016-11-24 | 1 | -0/+29 |
| | | |||||
| * | test: add a test about trying to log an event with too big enum values | Yoichi Hirai | 2016-11-24 | 1 | -0/+34 |
| | | |||||
| * | test: add a test that compares overflown enums | Yoichi Hirai | 2016-11-24 | 1 | -0/+33 |
| | | |||||
* | | test: add a test about explicitly converting a string literal to string | Yoichi Hirai | 2016-11-25 | 1 | -1/+11 |
| | | |||||
* | | ast: string literals that are not valid UTF are not convertible to strings | Yoichi Hirai | 2016-11-25 | 1 | -1/+1 |
| | | |||||
* | | test: add a test case converting an invalid UTF-8 into a string | Yoichi Hirai | 2016-11-25 | 1 | -0/+10 |
| | | |||||
* | | Merge pull request #1392 from ethereum/check_warning_contents | chriseth | 2016-11-25 | 3 | -300/+389 |
|\ \ | | | | | | | Check warning text in tests | ||||
| * | | test: various fixes | Yoichi Hirai | 2016-11-25 | 2 | -23/+25 |
| | | | |||||
| * | | interface: move searchForSubstring out of Error class into a separate file | Yoichi Hirai | 2016-11-24 | 3 | -2/+67 |
| | | | |||||
| * | | interface: fix the substring search | Yoichi Hirai | 2016-11-24 | 1 | -2/+2 |
| | | | |||||
| * | | test: wrapping the error message checking in a macro | Yoichi Hirai | 2016-11-24 | 1 | -272/+294 |
| | | | |||||
| * | | test: check the error texts | Yoichi Hirai | 2016-11-24 | 1 | -188/+188 |
| |/ | | | | | | | by changing parseAnalyseAndReturnError to return the whole Error, not just the type | ||||
* / | Enable the optimizer for test runs. | chriseth | 2016-11-23 | 1 | -0/+1 |
|/ | |||||
* | Merge pull request #1425 from ethereum/fixLicensing | chriseth | 2016-11-23 | 17 | -68/+68 |
|\ | | | | | Fix licensing headers | ||||
| * | Fix licensing headers | VoR0220 | 2016-11-23 | 17 | -68/+68 |
| | | | | | | | | Signed-off-by: VoR0220 <rj@erisindustries.com> |