OLD | NEW |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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 // Test that we get a meaningful breakpoint when breaking on a non-empty | 5 // Test that we get a meaningful breakpoint when breaking on a non-empty |
6 // column that does not point to the first sub-expression of the line. | 6 // column that does not point to the first sub-expression of the line. |
7 | 7 |
8 // FletchDebuggerCommands=bf a.dart 5,r,bf b.dart 5,2,c,c | 8 // DartinoDebuggerCommands=bf a.dart 5,r,bf b.dart 5,2,c,c |
9 | 9 |
10 import "find_file_test/a/a.dart" as a_a; | 10 import "find_file_test/a/a.dart" as a_a; |
11 import "find_file_test/a/b.dart" as a_b; | 11 import "find_file_test/a/b.dart" as a_b; |
12 import "find_file_test/b/b.dart" as b_b; | 12 import "find_file_test/b/b.dart" as b_b; |
13 | 13 |
14 int foo() { | 14 int foo() { |
15 int x = a_a.a(); | 15 int x = a_a.a(); |
16 int y = a_b.b(); | 16 int y = a_b.b(); |
17 int z = b_b.b(); | 17 int z = b_b.b(); |
18 return x + y + z; | 18 return x + y + z; |
19 } | 19 } |
20 | 20 |
21 main() { | 21 main() { |
22 return foo() == 60 ? 0 : 1; | 22 return foo() == 60 ? 0 : 1; |
23 } | 23 } |
OLD | NEW |