blob: a257adbdc6fa65e93eef83fdd8cf4ef1b2fbd9e8 [file] [log] [blame]
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
void case_never_completes(bool b, int i) {
switch (i) {
case 1:
1;
if (b) {
return;
} else {
return;
}
/*stmt: unreachable*/ 2;
}
3;
}
void case_falls_through_end(int i) {
switch (i) {
case 1:
1;
}
2;
}
/*member: all_cases_exit:doesNotComplete*/
void all_cases_exit(int i) {
switch (i) {
case 1:
return;
default:
return;
}
/*stmt: unreachable*/ 1;
}