File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ // compile-flags:-g
2+
3+ // === GDB TESTS ===================================================================================
4+
5+ // gdb-command:run
6+
7+ // gdb-command:print a
8+ // gdb-check:$1 = regression_bad_location_list_67992::Foo {x: [0 <repeats 1024 times>]}
9+
10+ // === LLDB TESTS ==================================================================================
11+
12+ // lldb-command:run
13+ // lldb-command:print a
14+ // lldbg-check:(regression_bad_location_list_67992::Foo) $0 = [...]
15+ // lldbr-check:(regression_bad_location_list_67992::Foo) a = [...]
16+
17+ const ARRAY_SIZE : usize = 1024 ;
18+
19+ struct Foo {
20+ x : [ u64 ; ARRAY_SIZE ] ,
21+ }
22+
23+ fn foo ( a : Foo , i : usize ) -> u64 {
24+ a. x [ i] // #break
25+ }
26+
27+ fn main ( ) {
28+ println ! ( "Hello, world!" ) ;
29+
30+ println ! ( "{}" , foo( Foo { x: [ 0 ; ARRAY_SIZE ] } , 42 ) ) ;
31+ }
You can’t perform that action at this time.
0 commit comments