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

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

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 library;
2 import self as self;
3 import "dart:core" as core;
4
5 static method main() → dynamic {
6 #L1:
7 switch(1) {
8 #L2:
9 case 1:
10 {
11 {
12 "No fall-through error needed.";
13 break #L1;
14 ;
15 }
16 }
17 #L3:
18 case 2:
19 {
20 {
21 "Fall-through error needed.";
22 if(true) {
23 break #L1;
24 }
25 }
26 throw core::_fallThroughError();
27 }
28 #L4:
29 case 3:
30 {
31 try {
32 "No fall-through error needed.";
33 }
34 finally {
35 break #L1;
36 }
37 }
38 #L5:
39 case 4:
40 {
41 try {
42 "No fall-through error needed.";
43 break #L1;
44 }
45 finally {
46 }
47 }
48 #L6:
49 case 5:
50 {
51 try {
52 "Fall-through error needed.";
53 }
54 finally {
55 }
56 throw core::_fallThroughError();
57 }
58 #L7:
59 case 10000:
60 {
61 "Should be last. No fall-through error, falling through allowed here.";
62 }
63 }
64 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698