2018-05-04 13:58:24 +00:00
|
|
|
contract C {
|
|
|
|
struct S { bool f; }
|
|
|
|
S s;
|
|
|
|
function f() internal view returns (S storage c) {
|
|
|
|
do {} while((c = s).f);
|
|
|
|
}
|
|
|
|
function g() internal view returns (S storage c) {
|
|
|
|
do { c = s; } while(false);
|
|
|
|
}
|
|
|
|
function h() internal view returns (S storage c) {
|
|
|
|
c = s;
|
|
|
|
do {} while(false);
|
|
|
|
}
|
|
|
|
function i() internal view returns (S storage c) {
|
|
|
|
do {} while(false);
|
|
|
|
c = s;
|
|
|
|
}
|
|
|
|
function j() internal view returns (S storage c) {
|
|
|
|
do {
|
|
|
|
c = s;
|
|
|
|
break;
|
|
|
|
} while(false);
|
|
|
|
}
|
|
|
|
function k() internal view returns (S storage c) {
|
|
|
|
do {
|
2018-05-15 12:19:40 +00:00
|
|
|
c = s;
|
|
|
|
continue;
|
2018-05-04 13:58:24 +00:00
|
|
|
} while(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|