mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[isoltest] Enforcing compileViaYul to be set if test can pass via yul
This commit is contained in:
committed by
chriseth
parent
cb32530b6b
commit
8b7f87eed5
@@ -5,6 +5,7 @@ contract C {
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f() -> 2
|
||||
|
||||
@@ -14,6 +14,7 @@ contract test {
|
||||
c = m_c;
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// get() -> 5, 6, 8
|
||||
|
||||
@@ -18,7 +18,8 @@ contract Derived is Base {
|
||||
return m_derived;
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// getBMember() -> 5
|
||||
// getDMember() -> 6
|
||||
|
||||
@@ -12,6 +12,8 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// x() -> 0
|
||||
// a() -> 0
|
||||
|
||||
@@ -42,6 +42,7 @@ contract C {
|
||||
return f1() && f2();
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f() -> true
|
||||
|
||||
@@ -3,7 +3,8 @@ contract test {
|
||||
int8 public y = 127;
|
||||
int16 public q = 250;
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// x() -> 2
|
||||
// y() -> 127
|
||||
|
||||
@@ -10,6 +10,7 @@ contract C {
|
||||
return (a, b);
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// g() -> 7, 8
|
||||
|
||||
+2
-1
@@ -6,6 +6,7 @@ contract Test {
|
||||
return data["abc"];
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f() -> 2
|
||||
|
||||
@@ -11,7 +11,8 @@ contract C {
|
||||
return ("abc");
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f() -> 0x40, 0x8, 0x3, "abc"
|
||||
// g() -> 0x40, 0x80, 0x3, "abc", 0x3, "def"
|
||||
|
||||
@@ -5,6 +5,8 @@ contract test {
|
||||
return cond ? x : y;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f(bool): true -> 0x1234ab
|
||||
// f(bool): false -> 0x1234abcd1234
|
||||
|
||||
@@ -25,6 +25,7 @@ contract C {
|
||||
if (a != 8 || b != 10) return 4;
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f() -> 0
|
||||
|
||||
Reference in New Issue
Block a user