OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 | 4 |
5 // Tests of operators. | 5 // Tests of operators. |
6 | 6 |
7 library operators_tests; | 7 library operators2_tests; |
8 | 8 |
9 import 'js_backend_cps_ir.dart'; | 9 import 'js_backend_cps_ir.dart'; |
10 | 10 |
11 const List<TestEntry> tests = const [ | 11 const List<TestEntry> tests = const [ |
12 | 12 |
13 const TestEntry(r""" | 13 const TestEntry(r""" |
14 foo(a, b) => ((a & 0xff0000) >> 1) & b; | 14 foo(a, b) => ((a & 0xff0000) >> 1) & b; |
15 main() { | 15 main() { |
16 print(foo(123, 234)); | 16 print(foo(123, 234)); |
17 print(foo(0, 2)); | 17 print(foo(0, 2)); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 function(a) { | 99 function(a) { |
100 var v0; | 100 var v0; |
101 return (a | 0) === a && (13 | 0) === 13 ? a / 13 | 0 : J.getInterceptor$n(v0 =
a / 13).toInt$0(v0); | 101 return (a | 0) === a && (13 | 0) === 13 ? a / 13 | 0 : J.getInterceptor$n(v0 =
a / 13).toInt$0(v0); |
102 }"""), | 102 }"""), |
103 | 103 |
104 ]; | 104 ]; |
105 | 105 |
106 void main() { | 106 void main() { |
107 runTests(tests); | 107 runTests(tests); |
108 } | 108 } |
OLD | NEW |