File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ //@ min-lldb-version: 310
2+
3+ //@ compile-flags:-g
4+
5+ // === GDB TESTS ===================================================================================
6+
7+ // gdb-command:run 7
8+
9+ // gdb-command:next
10+ // gdb-command:next
11+ // gdb-check:[...]#loc1[...]
12+ // gdb-command:next
13+ // gdb-check:[...]#loc2[...]
14+
15+ // === LLDB TESTS ==================================================================================
16+
17+ // lldb-command:run 7
18+
19+ // lldb-command:next
20+ // lldb-command:next
21+ // lldb-command:frame select
22+ // lldb-check:[...]#loc1[...]
23+ // lldb-command:next
24+ // lldb-command:frame select
25+ // lldb-check:[...]#loc2[...]
26+
27+ use std:: env;
28+ use std:: num:: ParseIntError ;
29+
30+ fn main ( ) -> Result < ( ) , ParseIntError > {
31+ let args = env:: args ( ) ;
32+ let number_str = args. skip ( 1 ) . next ( ) . unwrap ( ) ;
33+ let number = number_str. parse :: < i32 > ( ) ?;
34+ zzz ( ) ; // #break
35+ if number % 7 == 0 {
36+ // This generates code with a dummy span for
37+ // some reason. If that ever changes this
38+ // test will not test what it wants to test.
39+ return Ok ( ( ) ) ; // #loc1
40+ }
41+ println ! ( "{}" , number) ;
42+ Ok ( ( ) )
43+ } // #loc2
44+
45+ fn zzz ( ) { ( ) }
You can’t perform that action at this time.
0 commit comments