Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: pkg/front_end/test/fasta/rasta/switch_fall_through.dart

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file.
4
5 main() {
6 switch (1) {
7 case 1:
8 {
9 "No fall-through error needed.";
10 break;
11 ; // Empty statement.
12 }
13 case 2:
14 {
15 "Fall-through error needed.";
16 if (true) {
17 break;
18 }
19 }
20 case 3:
21 try {
22 "No fall-through error needed.";
23 } finally {
24 break;
25 }
26 case 4:
27 try {
28 "No fall-through error needed.";
29 break;
30 } finally {
31 }
32 case 5:
33 try {
34 "Fall-through error needed.";
35 } finally {
36 }
37 case 10000:
38 "Should be last. No fall-through error, falling through allowed here.";
39 }
40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698