aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityNameAndTypeResolution.cpp
Commit message (Expand)AuthorAgeFilesLines
* Introduce namespace `langutil` in liblangutil directory.Christian Parpart2018-11-221-0/+1
* Renamed SHA3.{h,cpp} files.chriseth2018-10-181-1/+1
* Add test for extcodehashAlex Beregszaszi2018-09-261-0/+13
* CREATE2 is part of Constantinople nowAlex Beregszaszi2018-09-261-5/+7
* Add return data to bare calls.Daniel Kirchner2018-09-041-1/+54
* Add syntax test for ``address.staticcall.value``.Daniel Kirchner2018-08-151-0/+15
* Add ``staticcall`` to ``address``.Daniel Kirchner2018-08-151-0/+16
* Update testsChase McDermott2018-08-151-10/+10
* Update tests to remove support for loose assemblyChristian Parpart2018-08-021-7/+3
* Added default data locations to parameters for end to end tests.Chase McDermott2018-07-161-1/+1
* Update test wrt requiring storage locations.Daniel Kirchner2018-07-121-2/+2
* Updates unit test to specify visibility.Erik Kundt2018-07-041-3/+3
* test: ensure compiled tests do not use var-keyword in preparation of var-keyw...Christian Parpart2018-07-021-3/+3
* Updates compiled unit tests to new constructor syntax.Erik Kundt2018-06-291-1/+1
* Enforce disallowing empty structsChristian Parpart2018-06-141-10/+10
* Move "create2_as_variable" back to non-isoltest tests.chriseth2018-06-051-0/+15
* Remove extracted tests from SolidityNameAndTypeResolutionAlex Beregszaszi2018-05-311-7051/+0
* Reformat test for extraction toolAlex Beregszaszi2018-05-311-1/+3
* Split up last NameAndTypeResolution test casesAlex Beregszaszi2018-05-301-18/+78
* Merge pull request #4176 from sifmelcara/add/calldata-keywordchriseth2018-05-301-3/+3
|\
| * Allow using `calldata` keyword to specify data locationmingchuan2018-05-301-3/+3
* | Split up NameAndTypeResolution test casesAlex Beregszaszi2018-05-301-154/+492
* | Extend function type comparison testAlex Beregszaszi2018-05-301-0/+16
|/
* Move fromElementaryTypeName tests to SolidityTypesAlex Beregszaszi2018-05-241-109/+0
* Merge pull request #4067 from ethereum/050chriseth2018-05-241-13/+0
|\
| * Disallow conversions between bytesX and uintY of different size.Daniel Kirchner2018-05-171-13/+0
* | Move comments into test sources in SolidityNameAndTypeResolutionAlex Beregszaszi2018-05-231-43/+46
|/
* Replace constant with view in the tests.Daniel Kirchner2018-05-091-66/+0
* Remove deprecated syntax from a testchriseth2018-05-081-1/+1
* Extract tests.chriseth2018-05-081-74/+0
* Extract subdenomination testsAlex Beregszaszi2018-04-231-19/+0
* Extract syntax testsAlex Beregszaszi2018-04-211-26/+1
* Extract tests.chriseth2018-04-191-15/+0
* Fix name clashes between constructor and fallback function.chriseth2018-04-181-1/+0
* Extract tests.chriseth2018-04-181-182/+0
* Merge pull request #3364 from ethereum/revertWithReasonchriseth2018-04-131-3/+19
|\
| * Adjust tests.chriseth2018-04-121-2/+3
| * Tests for revert with reason string.chriseth2018-04-121-1/+16
* | Merge pull request #2980 from ethereum/abi-apichriseth2018-04-131-47/+0
|\ \ | |/ |/|
| * Tests.chriseth2018-04-121-63/+0
| * Add abi.encode, abi.encodePacked, abi.encodeWithSelector and abi.encodeWithSi...Alex Beregszaszi2018-04-121-0/+16
* | Merge pull request #3848 from ethereum/constantDivisionByZerochriseth2018-04-121-14/+0
|\ \ | |/ |/|
| * Error on invalid arithmetic with constant expressions.Daniel Kirchner2018-04-121-14/+0
* | Extract modifier tests.chriseth2018-04-121-158/+0
* | Extract function type tests.chriseth2018-04-121-313/+0
|/
* Syntax Tests: extract array_length_* tests.Daniel Kirchner2018-04-121-165/+0
* Merge pull request #3745 from ethereum/fixRecursionAlex Beregszaszi2018-04-051-125/+0
|\
| * Extract constant cycle tests.chriseth2018-04-031-32/+0
| * Extract recursive struct tests.chriseth2018-04-031-93/+0
* | Remove redundant test and enforce success without warnings.Daniel Kirchner2018-04-041-7/+1
* | Constructors are defined using the ``constructor`` keyword.Daniel Kirchner2018-04-041-2/+37
|/
* Merge pull request #3699 from ethereum/interfaceExternalVisibilityAlex Beregszaszi2018-04-031-48/+0
|\
| * Moves all interface function visibility related tests.Erik Kundt2018-04-031-48/+0
* | Set default fixed point decimal places to 18Jason Cobb2018-03-311-5/+5
* | Merge pull request #3790 from ethereum/empty-structschriseth2018-03-301-1/+1
|\ \ | |/ |/|
| * Disallow empty structsAlex Beregszaszi2018-03-271-1/+1
* | Merge pull request #3775 from federicobond/improve-error-fractional-shiftchriseth2018-03-281-0/+10
|\ \ | |/ |/|
| * Improve error message when trying to shift by fractional numberFederico Bond2018-03-221-0/+10
* | Merge pull request #3681 from ethereum/interface-externalchriseth2018-03-271-0/+14
|\ \
| * | Allow overriding external functions in interfaces with public in an implement...Alex Beregszaszi2018-03-261-0/+14
| |/
* | Merge pull request #3748 from ethereum/extractScopingTestschriseth2018-03-271-223/+0
|\ \
| * | Extract scoping tests.chriseth2018-03-161-223/+0
* | | Changes deprecation and adjusts tests.bitshift2018-03-271-6/+21
* | | Adds unit tests for moved function.bitshift2018-03-271-0/+12
| |/ |/|
* | Tests for returning dynamic data.chriseth2018-03-211-6/+21
* | Decode dynamic data.chriseth2018-03-211-0/+5
|/
* test: Rename test/TestHelper.* to test/Options.* and add Options::validate().Daniel Kirchner2018-03-141-1/+1
* Infrastructure for extracting syntax tests in separate test files.Daniel Kirchner2018-03-131-52/+0
* Fix test.chriseth2018-03-071-1/+1
* Merge pull request #3611 from ethereum/warn-using-address-overloadAlex Beregszaszi2018-03-071-6/+165
|\
| * Warn if using address overloads on contractsAlex Beregszaszi2018-03-051-6/+165
* | Tests for warnings/errors for loose assembly.chriseth2018-03-071-4/+192
* | Merge pull request #3549 from ethereum/fixmultidimAlex Beregszaszi2018-03-061-0/+56
|\ \
| * | Tests for multi-dimensional arrays.chriseth2018-03-011-0/+56
* | | Merge pull request #3652 from ethereum/gasleft_v2chriseth2018-03-061-2/+2
|\ \ \
| * | | Use StaticAnalyzer to deprecate msg.gas instead of conditionally removing it ...Daniel Kirchner2018-03-061-2/+2
* | | | Merge pull request #3643 from ethereum/gasleftchriseth2018-03-061-0/+44
|\| | |
| * | | Improved gasleft tests.Daniel Kirchner2018-03-061-7/+7
| * | | Add test cases for shadowing gasleft with local functions/variables.Daniel Kirchner2018-03-051-0/+19
| * | | Move msg.gas to global function gasleft(). Closes #2971.Daniel Kirchner2018-03-051-0/+25
* | | | Do not warn about 0.5.0 experimental pragma.chriseth2018-03-051-6/+3
| |_|/ |/| |
* | | Merge pull request #3569 from ethereum/evmVersionchriseth2018-03-051-5/+9
|\ \ \ | |/ / |/| |
| * | Add TangerineWhistle.chriseth2018-03-021-1/+1
| * | CREATE2 test fix.chriseth2018-03-021-1/+1
| * | Returndatasize and staticcall test fixes.chriseth2018-03-021-9/+6
| * | Correctly set evm version in testschriseth2018-03-021-0/+2
| * | Use EVM version in type checker.chriseth2018-03-021-0/+5
| |/
* / Deprecate using unit denominations in combination with hex numbers. Closes #3...Daniel Kirchner2018-03-011-0/+19
|/
* Merge pull request #3613 from ethereum/require-visibilitychriseth2018-02-281-6/+23
|\
| * Issue error if no visibility is specified (on 0.5.0)Alex Beregszaszi2018-02-271-6/+23
* | Some more scoping tests.chriseth2018-02-271-1/+74
* | Only active variables at the point of their declaration.chriseth2018-02-271-3/+72
* | Enable C99-scoping with the 0.5.0-experimental pragma.chriseth2018-02-271-2/+45
* | Tests for new scoping behaviour.chriseth2018-02-271-0/+44
* | Adjust tests.chriseth2018-02-271-4/+8
|/
* Turn throw into a syntax error for 0.5.0Alex Beregszaszi2018-02-271-1/+10
* Test data location of getter return type.chriseth2018-02-261-0/+20
* Tests for warnings.chriseth2018-02-221-0/+23
* Introduce emit statement.chriseth2018-02-221-0/+33
* Test ``_offset`` for constants in inline assembly.chriseth2018-02-201-0/+15
* Disallow uninitialized storage pointers as experimental 0.5.0 feature.chriseth2018-02-151-0/+32
* Merge pull request #3498 from ethereum/allowthisfselectorchriseth2018-02-141-9/+1
|\
| * Allow `this.f.selector` to be pure.chriseth2018-02-131-9/+1
* | Move string distance function to utils and format error messageBalajiganapathi S2018-02-131-4/+4
* | Suggest alternatives when identifier not found.Balajiganapathi S2018-02-131-0/+87
* | Merge pull request #3349 from federicobond/number-improvAlex Beregszaszi2018-02-131-2/+2
|\ \ | |/ |/|
| * Always use shortened literal number representation.chriseth2018-02-131-1/+1
| * Avoid output messages size blow-up using huge bignums literalsFederico Bond2018-02-131-1/+1
* | Adjust tests for multiple errors with the var keywordAlex Beregszaszi2018-02-131-10/+20
* | Do not use var where not neccessary in testsAlex Beregszaszi2018-02-131-1/+1
|/
* Merge pull request #3479 from ethereum/multiErrorchriseth2018-02-131-36/+86
|\
| * Support searching inside multiple errors.chriseth2018-02-121-36/+86
* | Fix segfault with undeclared array typesFederico Bond2018-02-121-0/+10
|/
* Merge pull request #3360 from federicobond/nonfatal-reference-errorsAlex Beregszaszi2018-02-041-1/+66
|\
| * Add more test cases for reference resolving error handlingFederico Bond2018-02-031-0/+65
| * Replace some fatal errors when resolving references with normal onesFederico Bond2018-02-031-1/+1
* | Issue warning for using public visibility for interface functionsAlex Beregszaszi2018-02-011-1/+7
|/
* Improve error message for wrong struct initialization (#3359)Federico Bond2018-01-041-0/+14
* Simplify ConstantEvaluator.chriseth2017-12-121-1/+1
* Reduce the types of errors outputted by ConstantEvaluatorAlex Beregszaszi2017-12-121-4/+4
* Improve error message for constant evaluatorAlex Beregszaszi2017-12-121-9/+9
* Move some struct tests to require ABIEncoderV2Alex Beregszaszi2017-12-111-0/+4
* Merge pull request #3235 from ethereum/explicit-testsAlex Beregszaszi2017-11-231-4/+4
|\
| * Improve expected test errors for some old casesAlex Beregszaszi2017-11-221-4/+4
* | success(text) -> CHECK_SUCCESS(text)Kwang Yul Seo2017-11-221-13/+13
|/
* Improve cyclic constant error messageAlex Beregszaszi2017-11-221-2/+2
* Detect cyclic constant definitionsBalajiganapathi S2017-11-221-1/+29
* Add more tests for constant var as array lengthsBalajiganapathi S2017-11-221-1/+96
* Allow constant integer variables as array lengths.Balajiganapathi S2017-11-221-1/+23
* Extend address checksum testsAlex Beregszaszi2017-11-171-4/+17
* Add missing name resolver testsFederico Bond2017-10-271-0/+29
* More detailed errors for invalid array lengths (such as division by zero).Alex Beregszaszi2017-10-201-0/+6
* Turn usage of callcode into an error as experimental 0.5.0 featureAlex Beregszaszi2017-10-191-0/+10
* Only check tuples for valid rational numbers if they have more than one element.chriseth2017-10-181-1/+17
* Validate each tuple literalAlex Beregszaszi2017-10-181-1/+32
* Force interface functions as external (0.5.0)Alex Beregszaszi2017-10-061-0/+22
* Merge pull request #3036 from ethereum/constant-eval-refactorchriseth2017-10-061-1/+39
|\
| * Add tests for ConstantEvaluatorAlex Beregszaszi2017-10-061-1/+39
* | Ensure unused variables are not warned for in interfaces/abstract contractsAlex Beregszaszi2017-10-061-0/+20
|/
* Require location keyword for local variables (0.5.0)Alex Beregszaszi2017-10-061-1/+13
* Do not add members of address to contracts in experimental 0.5.0Alex Beregszaszi2017-10-051-0/+58
* Do not consider shadowing in variable names inside event declarationsFederico Bond2017-10-051-0/+11
* Better error message when using fractional number as array size expressionswadeAlexC2017-10-041-3/+3
* Disallow non-pure constant state variables in 0.5.0Federico Bond2017-10-031-4/+27
* Emit error when declaring event with same name and arguments twiceFederico Bond2017-09-301-0/+55
* Unary + now a synax error (experimental 0.5.0)Rhett Aultman2017-09-301-0/+25
* Validate array length in type checkerAlex Beregszaszi2017-09-291-0/+10
* Fix overload resolution when conflict is with members of address (balance, tr...Alex Beregszaszi2017-09-281-0/+23
* Warn about obsolete sha3/suicide callsAlex Beregszaszi2017-09-191-2/+27
* Add tests for constant bytes/stringsAlex Beregszaszi2017-09-191-0/+12
* Merge pull request #2910 from ethereum/fallback-restrict-externalchriseth2017-09-181-0/+32
|\
| * Force fallback to be external (experimental 0.5.0 change)Alex Beregszaszi2017-09-181-0/+32
* | Fixed tests with mappings in structs and added some more.chriseth2017-09-161-2/+90
* | Use "tuple" for struct types in ABI JSON.chriseth2017-09-161-3/+28
* | Fix tests.chriseth2017-09-161-4/+4
* | Fix interface type conversion internal to structs.chriseth2017-09-161-4/+2
* | Tests for external signatures.chriseth2017-09-161-4/+28
* | Function signatures containing structs.chriseth2017-09-161-6/+14
* | Update tests and error messages.chriseth2017-09-161-9/+9
* | Allow structs as part of function interfaces.chriseth2017-09-161-0/+50
|/
* Update type tests to contain mandatory visibility specifiersAlex Beregszaszi2017-09-141-495/+506
* Fix view/pure warnings on selector testsAlex Beregszaszi2017-09-141-14/+14
* Merge pull request #2473 from ethereum/functiontype-sigAlex Beregszaszi2017-09-141-0/+81
|\
| * Rename .sig to .selector on function typesAlex Beregszaszi2017-09-131-11/+11
| * Add tests for function type sigsAlex Beregszaszi2017-09-131-0/+81
* | Merge pull request #2848 from ethereum/checkViewPurechriseth2017-09-141-71/+71
|\ \ | |/ |/|
| * Analyze assembly.chriseth2017-09-061-2/+2
| * New tests for view and pure checker.chriseth2017-09-061-8/+8
| * Change tests to use view or pure as appropriateAlex Beregszaszi2017-09-061-61/+61
* | Display helpful warning for unused function arguments/return parametersSuman2017-09-121-7/+7
* | Change retrieveContract to take name and not indexAlex Beregszaszi2017-09-111-2/+2
|/
* Fix warning checking in test framework.chriseth2017-09-061-4/+4
* Change array too large error message as it is valid for non-calldata tooAlex Beregszaszi2017-09-061-3/+3
* Extract base from NameAndType and use compiler stack.chriseth2017-08-291-223/+35
* Merge pull request #2819 from ethereum/compilerstack-typecheckchriseth2017-08-261-4/+3
|\
| * Update SolidityNameAndTypeResolution to match CompilerStackAlex Beregszaszi2017-08-251-4/+3
* | Warn on using literals in tight packingAlex Beregszaszi2017-08-251-0/+44
|/
* Introduce view (and keep constant as an alias)Alex Beregszaszi2017-08-231-3/+3
* Check inheritance specifier arguments for interfaces.chriseth2017-08-221-0/+9
* Reject the creation of interface with the new statementAlex Beregszaszi2017-08-221-0/+26
* Fix crash related to ``using for`` without a library.chriseth2017-08-211-0/+15
* Library cannot have constructorsAlex Beregszaszi2017-08-211-0/+10
* Use state mutability in override error messagesAlex Beregszaszi2017-08-171-4/+4
* Use state mutability in fallback/constructor checkAlex Beregszaszi2017-08-171-2/+2
* Warn about shift of literals.chriseth2017-08-161-0/+38
* Remove useless payable & constant typecheckAlex Beregszaszi2017-08-141-9/+0
* Merge pull request #2703 from ethereum/warnAboutLargeStorageArrayschriseth2017-08-141-0/+51
|\
| * Warn about large storage structures.chriseth2017-08-121-0/+51
* | Improve and add missing testsFederico Bond2017-08-121-6/+15
|/
* Merge pull request #2712 from ethereum/experimental-metadataAlex Beregszaszi2017-08-121-7/+7
|\
| * Add __test experimental mode for testingAlex Beregszaszi2017-08-111-7/+7
* | Amend expected test messages for SolidityNameAndTypeResolutionZhen Zhang2017-08-111-168/+168
|/
* Add tests for experimental pragmaAlex Beregszaszi2017-08-101-0/+37
* Disable unimplemented library functions insteadAlex Beregszaszi2017-08-081-12/+10
* Raise error when using unimplemented internal library functions.Alex Beregszaszi2017-08-081-0/+24
* Constructors must be implemented if declared.Alex Beregszaszi2017-08-051-39/+11
* Merge pull request #2687 from ethereum/show-unimplemented-funcsAlex Beregszaszi2017-08-051-8/+8
|\
| * Fix tests to use unimplementedFunctionsAlex Beregszaszi2017-08-041-8/+8
* | Three more tests for shadowing.chriseth2017-08-051-0/+30
* | Do not mark overloaded functions as shadowingAlex Beregszaszi2017-08-051-0/+11
|/
* Disallow gas modifier on sha255/ripemd160/ecrecoverAlex Beregszaszi2017-08-021-0/+24
* Add test for disallowed gas/value modifiers on builtinsAlex Beregszaszi2017-08-011-1/+49
* Merge pull request #2635 from ethereum/fixCrashOnAssignmentToNonLValueAlex Beregszaszi2017-07-271-0/+14
|\
| * Test for assigning to non-lvalue.chriseth2017-07-261-0/+14
* | Re-allow multiple modifiers per function.chriseth2017-07-271-1/+1
* | Warn about shadowing variables.Alex Beregszaszi2017-07-251-24/+79
|/
* Cleanup fixed point type changeschriseth2017-07-201-81/+73
* Change fixed point types to have digit countVoR02202017-07-201-54/+50
* Merge pull request #2334 from ethereum/printMultiErrorAlex Beregszaszi2017-07-201-1/+8
|\
| * Print information about types of errors.chriseth2017-07-191-1/+8
* | Add test and changelogAlex Beregszaszi2017-07-191-1/+15
|/
* Mark modifiers as internalAlex Beregszaszi2017-07-191-0/+14
* Add test for explicit type conversion literal stringAlex Beregszaszi2017-07-141-0/+37
* Disable large arrays for memory location tooAlex Beregszaszi2017-07-141-1/+1
* Add tests for large calldata arraysAlex Beregszaszi2017-07-141-0/+25
* Add another transfer testcase.chriseth2017-07-131-0/+18
* Add type error when attempting value transfer to a non-payable contractFederico Bond2017-07-131-0/+70
* Issue proper warning trying to access calldata variables in inline assemblyAlex Beregszaszi2017-07-121-0/+14
* Add failing implicit conversion testAlex Beregszaszi2017-07-111-0/+12
* Fix invalid "explicit storage keyword" warning for reference members of structs.chriseth2017-07-111-1/+1
* Deprecate throw.chriseth2017-07-061-0/+12
* Warn if local storage reference variable does not use "storage" explicitly.chriseth2017-07-061-2/+28
* Warn about callcode.chriseth2017-06-301-1/+26
* Give min and max values in warning message.chriseth2017-06-281-2/+20
* Adjust other tests.chriseth2017-06-281-8/+8
* Fix test error reporting if we ignore warnings.chriseth2017-06-281-3/+9
* Update tests themselveschriseth2017-06-281-2/+2
* Test for var i = 0;chriseth2017-06-281-0/+22
* Merge pull request #2464 from federicobond/deprecate-function-type-nameschriseth2017-06-271-0/+20
|\
| * Warn deprecated usage of parameter names in function typesFederico Bond2017-06-271-0/+20
* | Merge pull request #2437 from ethereum/warnDoubleCopyStorageAlex Beregszaszi2017-06-271-0/+74
|\ \
| * | Some more tests.chriseth2017-06-261-0/+32
| * | Warn about copies in storage that might overwrite unexpectedly.chriseth2017-06-261-0/+42
* | | Update tests for function type comparisonAlex Beregszaszi2017-06-271-0/+11
* | | Tests for comparison of non-comparable types.chriseth2017-06-261-0/+34
|/ /
* | Merge pull request #2450 from ethereum/addressstringAlex Beregszaszi2017-06-261-0/+19
|\ \
| * | Check for address-like strings being treated as addresses.chriseth2017-06-221-0/+19
* | | Merge pull request #2460 from ethereum/disallowMultiModifierAlex Beregszaszi2017-06-261-0/+22
|\ \ \
| * | | Disallow invoking the same modifier multiple times.chriseth2017-06-241-0/+22
* | | | Merge pull request #2449 from federicobond/warn-bytesxx-decimalchriseth2017-06-261-2/+32
|\ \ \ \ | |/ / / |/| | |
| * | | Warn if decimal literals are used in a bytesXX contextFederico Bond2017-06-241-2/+32
| |/ /
* | / Check for constness of address constant.chriseth2017-06-231-0/+10
| |/ |/|
* | Fix segmentation fault with constant function parametersFederico Bond2017-06-221-0/+20
|/
* Fix UTF-8 validation for high codepoints (>10000)Alex Beregszaszi2017-06-161-0/+10
* Merge pull request #2381 from ethereum/fixcrashchriseth2017-06-151-1/+14
|\
| * Fix a crash about a non-callable expression.chriseth2017-06-141-1/+14
* | Additional test.chriseth2017-06-141-0/+8
|/
* Add a warning about a varialbe of the name of an instructionYoichi Hirai2017-06-131-1/+1
* Add a failing test as suggested inYoichi Hirai2017-06-131-0/+9
* Add a test about checking a warningYoichi Hirai2017-06-131-2/+14