[ewasm] Polyfill: calldataload & calldatacopy: Enable Tests.

This commit is contained in:
Alexander Arlt
2020-11-21 08:57:56 -05:00
parent 3a3303f24e
commit da36055449
432 changed files with 460 additions and 36 deletions
@@ -24,6 +24,7 @@ contract test {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint256[]): 32, 3, 1000, 1, 2 -> 3
// f(uint256[]): 32, 3, 100, 500, 300 -> 600
@@ -24,5 +24,6 @@ contract test {
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 2
@@ -14,6 +14,7 @@ contract test {
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> true
// flag() -> true
@@ -19,6 +19,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// associated() -> 42
// unassociated() -> 42
@@ -24,6 +24,7 @@ contract C {
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> FAILURE
// g() -> FAILURE
@@ -14,6 +14,7 @@ contract collatz {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// run(uint256): 0 -> 0
// run(uint256): 1 -> 1
@@ -13,6 +13,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// intern() -> FAILURE # This should throw exceptions #
// extern() -> FAILURE
@@ -18,5 +18,6 @@ contract C {
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// t() -> FAILURE
@@ -17,5 +17,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// t() -> FAILURE
@@ -8,5 +8,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 1
@@ -4,5 +4,6 @@ contract test {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// b() -> 123
@@ -14,5 +14,6 @@ contract c {
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test(uint256,uint256): 2, 3 -> 9, 3
@@ -17,6 +17,7 @@ contract B is A {
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 2
// g() -> 2
@@ -11,5 +11,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 7, 3
@@ -36,6 +36,7 @@ contract Child is Base {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// x() -> 0
// y() -> 0
@@ -20,6 +20,7 @@ contract Child is Base {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// x() -> 0
// y() -> 0
@@ -11,5 +11,6 @@ contract Child is Base {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// g(uint256): 4 -> 8
@@ -24,6 +24,7 @@ contract Child is Base {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// g(uint256): 4 -> 12
// h(uint256): 4 -> 16
@@ -27,6 +27,7 @@ contract Child is Base {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// g(uint256): 4 -> 8
// k(uint256): 4 -> 16
@@ -11,5 +11,6 @@ contract Child is Base {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// g(uint256): 4 -> 8
@@ -12,5 +12,6 @@ contract C is V
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// b() -> 42
@@ -13,8 +13,9 @@ contract test {
uint256 super_secret_data;
}
// ====
// allowNonExistingFunctions: true
// compileViaYul: also
// compileToEwasm: also
// allowNonExistingFunctions: true
// ----
// data() -> 8
// name() -> "Celina"
@@ -5,8 +5,9 @@ contract test {
function f() public returns(uint n) { return 3; }
}
// ====
// allowNonExistingFunctions: true
// compileViaYul: also
// compileToEwasm: also
// allowNonExistingFunctions: true
// ----
// a() -> 0
// b() -> 1
@@ -5,5 +5,6 @@ contract test {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// run(bool,uint256): true, 0xcd -> 0xcd, true, 0
@@ -5,6 +5,7 @@ contract test {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// b() -> 123
// c() -> 123
@@ -28,6 +28,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// call(uint256): 0 -> 0
// call(uint256): 1 -> 1
@@ -16,6 +16,7 @@ contract Main {
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// constructor(), 20 wei ->
// s() -> true
@@ -5,6 +5,7 @@ contract test {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() ->
// g() -> FAILURE