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

Side by Side Diff: pkg/front_end/testcases/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
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 main() { 5 main() {
6 switch (1) { 6 switch (1) {
7 case 1: 7 case 1:
8 { 8 {
9 "No fall-through error needed."; 9 "No fall-through error needed.";
10 break; 10 break;
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 case 5: 32 case 5:
33 try { 33 try {
34 "Fall-through error needed."; 34 "Fall-through error needed.";
35 } finally { 35 } finally {
36 } 36 }
37 case 10000: 37 case 10000:
38 "Should be last. No fall-through error, falling through allowed here."; 38 "Should be last. No fall-through error, falling through allowed here.";
39 } 39 }
40 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698