Commit Graph
3491 Commits
Author SHA1 Message Date
chriseth 08763a206d Test passing functions as arrays to other contracts. 2016-11-16 14:37:18 +01:00
chriseth 925d674146 Disallow payable internal functions. 2016-11-16 14:37:18 +01:00
chriseth e1df3bd77f Fix tests. 2016-11-16 14:37:18 +01:00
chriseth f21f794f3c delete for function types 2016-11-16 14:37:18 +01:00
Yoichi Hirai c9f9b2ab4d codegen: add a compilation mode and a runtime context to CompilerContext 2016-11-16 14:37:18 +01:00
chriseth 47794c1da4 Implement uninitialized storage functions. 2016-11-16 14:37:18 +01:00
chriseth b6992d740a Tests for uninitialized storage functions. 2016-11-16 14:37:18 +01:00
Yoichi Hirai 3158a8ea7b test: add a test for storing an internal function in the constructor and then using the stored function in runtime 2016-11-16 14:37:18 +01:00
chriseth 87b148494b Tests. 2016-11-16 14:37:18 +01:00
Yoichi Hirai 6172590b87 Add a test around storing functions in an array 2016-11-16 14:37:17 +01:00
Yoichi Hirai 708b7b35ad Add a parser test for arrays containing functions 2016-11-16 14:37:17 +01:00
Yoichi Hirai ab3d1b024d Add tests around calling functions returning functions returning functions 2016-11-16 14:37:17 +01:00
chriseth 95d7555e3c External functions in storage. 2016-11-16 14:37:17 +01:00
chriseth 6f19559de0 Fix some type checks and tests for internal / external function parameters. 2016-11-16 14:37:17 +01:00
chriseth 97a3588701 Function type state variables. 2016-11-16 14:37:17 +01:00
chriseth dd173f83e3 Code generator for function types. 2016-11-16 14:37:17 +01:00
chriseth cc8583ec7d Function types. 2016-11-16 14:37:17 +01:00
Alex Beregszaszi 227f6aab4f Change natspec/abi JSON expected message to be the same 2016-11-15 17:58:55 +00:00
Alex Beregszaszi 81c50143f2 Move JSON helpers to libdevcore/json 2016-11-15 17:38:18 +00:00
Alex Beregszaszi 9205662de9 Update tests to use JSON 2016-11-15 17:20:30 +00:00
Alex Beregszaszi ae8403ed08 Rename ErrorTag to invalidJumpLabel in inline assembly 2016-11-15 10:30:33 +00:00
Alex Beregszaszi bee926bf3f Add tests for the ErrorTag 2016-11-15 10:30:33 +00:00
chriseth dce80911e1 Add tests 2016-11-15 09:16:33 +01:00
Yoichi Hirai e6247195dd test: add a testcase about using an invalid enum value as an external call argument 2016-11-14 20:46:30 +01:00
Yoichi Hirai 454e7618c8 test: add tests about returning invalid enum values from interface functions 2016-11-14 16:44:04 +01:00
Yoichi Hirai 4b6e7e0677 test: add a test conerting an enum into another enum, which should fail 2016-11-11 17:48:03 +01:00
Yoichi Hirai eee629652e parsing: ban empty enum definition. 2016-11-11 17:48:03 +01:00
Yoichi Hirai 457daecba1 test: add a test converting -1 as a literal into an enum
This shows #1334 fixes #1344
2016-11-11 17:48:03 +01:00
Yoichi Hirai 08a889a908 test: add a test case for #1343
The test witnesses that #1334 fixes #1343.
2016-11-11 17:48:03 +01:00
Yoichi Hirai 8856adce8f test: add tests that witness issue #1311 2016-11-11 17:47:48 +01:00
Yoichi Hirai 33590d513e test: add a test for #621 2016-11-11 15:51:54 +01:00
chriseth a40dcfef12 Merge pull request #768 from roadriverrail/do_while_loops
Add support for do/while loops
2016-11-10 17:13:45 +01:00
Rhett Aultman 4524ad0870 Add support for do/while loops
This commit adds support for a standard do <statement> while <expr>;
form of statement.  While loops were already being supported; supporting
a do/while loop mostly involves reusing code from while loops but putting
the conditional checking last.
2016-11-10 07:07:25 -08:00
chriseth 81118de512 Merge pull request #1339 from ethereum/typo
test: fix a typo in calling_payable test
2016-11-09 11:29:41 +01:00
chriseth 63bde109a1 Fail if parsing fails in type checker tests. 2016-11-09 10:48:45 +01:00
Yoichi Hirai 88547a1c66 test: fix a typo in calling_payable test 2016-11-08 17:09:24 +01:00
Yoichi Hirai 2e92966684 libevmasm: fix comparison of SourceLocations 2016-11-08 11:11:08 +01:00
chriseth 681b130dc8 Test case for overflow in storage. 2016-10-31 16:40:19 +01:00
Yoichi Hirai 578b02bb37 Add tests for #1246 2016-10-25 16:48:26 +02:00
chriseth e00a4b47c0 Merge pull request #1264 from ethereum/988
State variable under contract's name
2016-10-25 12:50:24 +02:00
Yoichi Hirai 58477c233d test: add more tests about state variable access under base contract names 2016-10-24 19:31:51 +02:00
chriseth 6b028701a0 Test. 2016-10-24 16:43:08 +02:00
Yoichi Hirai 922e4b3ce7 test: add tests from #988 2016-10-24 16:34:52 +02:00
Yoichi Hirai 47b11ef2b8 test: add a test case for accessing a state variable under the contract's name
The test comes from the description of #988
2016-10-24 16:28:14 +02:00
Yoichi Hirai df900c5583 test: add a test about using an inherited enum definition as an expression,
with an explicit mention of the base contract.  The test is about #1131.
2016-10-24 15:28:23 +02:00
chriseth 2b00804d1d Fix crash in throw. 2016-10-24 14:32:49 +02:00
chriseth cb1fcaf6f6 Merge pull request #1240 from ethereum/1151
ast: super contract type does not contain native members
2016-10-24 11:45:54 +02:00
Yoichi Hirai 4b7fdaa0bd test: add a test about accessing an enum member without the name of the enum 2016-10-21 13:01:45 +02:00
Yoichi Hirai f967623a5b test: add tests for #1131
The tests are about enum inheritance.
2016-10-21 13:01:45 +02:00
Alex Beregszaszi 13b2101ea7 Add tests for inline assembly in modifiers 2016-10-20 23:57:14 +01:00