Chromium Code Reviews| Index: tests/compiler/dart2js/cps_ir/input/codeUnitAt_2.dart |
| diff --git a/tests/compiler/dart2js/cps_ir/input/codeUnitAt_2.dart b/tests/compiler/dart2js/cps_ir/input/codeUnitAt_2.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a26c3591b1774311456e7efa62af7e05022f6cdb |
| --- /dev/null |
| +++ b/tests/compiler/dart2js/cps_ir/input/codeUnitAt_2.dart |
| @@ -0,0 +1,10 @@ |
| +// Bounds checking |
| +foo(s) { |
| + var sum = 0; |
| + for (int i = 0; i < s.length; i++) sum += s.codeUnitAt(i); |
| + return sum; |
| +} |
| +main() { |
| + print(foo('ABC')); |
| + print(foo('Hello')); |
| +} |