mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Extract test cases from ViewPureChecker
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
contract C {
|
||||
struct S { uint a; }
|
||||
S s;
|
||||
function f() view public {
|
||||
S storage x = s;
|
||||
x;
|
||||
}
|
||||
function g() view public {
|
||||
S storage x = s;
|
||||
x = s;
|
||||
}
|
||||
function i() public {
|
||||
s.a = 2;
|
||||
}
|
||||
function h() public {
|
||||
S storage x = s;
|
||||
x.a = 2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user