mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
26 lines
403 B
Solidity
26 lines
403 B
Solidity
contract C {
|
|
struct S { bool f; }
|
|
S s;
|
|
function f() internal view {
|
|
S storage c;
|
|
while((c = s).f) {
|
|
}
|
|
c;
|
|
}
|
|
function g() internal view {
|
|
S storage c;
|
|
c = s;
|
|
while(false) {
|
|
}
|
|
c;
|
|
}
|
|
function h() internal view {
|
|
S storage c;
|
|
while(false) {
|
|
}
|
|
c = s;
|
|
c;
|
|
}
|
|
}
|
|
// ----
|