| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // VMOptions=-DUSE_CPS_IR=true |
| 4 | 5 |
| 5 // Tests of control flow statements. | 6 // Tests of control flow statements. |
| 6 | 7 |
| 7 library control_flow_tests; | 8 library control_flow_tests; |
| 8 | 9 |
| 9 import 'js_backend_cps_ir_test.dart'; | 10 import 'js_backend_cps_ir.dart'; |
| 10 | 11 |
| 11 const List<TestEntry> tests = const [ | 12 const List<TestEntry> tests = const [ |
| 12 const TestEntry(""" | 13 const TestEntry(""" |
| 13 main() { | 14 main() { |
| 14 while (true); | 15 while (true); |
| 15 } | 16 } |
| 16 """, """ | 17 """, """ |
| 17 function() { | 18 function() { |
| 18 while (true) | 19 while (true) |
| 19 ; | 20 ; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } else { | 132 } else { |
| 132 print('good'); | 133 print('good'); |
| 133 } | 134 } |
| 134 }""",""" | 135 }""",""" |
| 135 function() { | 136 function() { |
| 136 V.foo(); | 137 V.foo(); |
| 137 P.print("good"); | 138 P.print("good"); |
| 138 return null; | 139 return null; |
| 139 }"""), | 140 }"""), |
| 140 ]; | 141 ]; |
| 142 |
| 143 void main() { |
| 144 runTests(tests); |
| 145 } |
| OLD | NEW |