File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ // ignore-android: FIXME(#10381)
12
+
13
+ // compile-flags:-g
14
+ // debugger:break issue12886.rs:29
15
+ // debugger:run
16
+ // debugger:next
17
+ // check:[...]30[...]s
18
+ // debugger:continue
19
+
20
+ // IF YOU MODIFY THIS FILE, BE CAREFUL TO ADAPT THE LINE NUMBERS IN THE DEBUGGER COMMANDS
21
+
22
+ // This test makes sure that gdb does not set unwanted breakpoints in inlined functions. If a
23
+ // breakpoint existed in unwrap(), then calling `next` would (when stopped at line 27) would stop
24
+ // in unwrap() instead of stepping over the function invocation. By making sure that `s` is
25
+ // contained in the output, after calling `next` just once, we can be sure that we did not stop in
26
+ // unwrap(). (The testing framework doesn't allow for checking that some text is *not* contained in
27
+ // the output, which is why we have to make the test in this kind of roundabout way)
28
+ fn bar ( ) -> int {
29
+ let s = Some ( 5 ) . unwrap ( ) ;
30
+ s
31
+ }
32
+
33
+ fn main ( ) {
34
+ let _ = bar ( ) ;
35
+ }
You can’t perform that action at this time.
5 commit comments
bors commentedon Apr 16, 2014
saw approval from alexcrichton
at michaelwoerister@7c042cd
bors commentedon Apr 16, 2014
merging michaelwoerister/rust/various-fixes = 7c042cd into auto
bors commentedon Apr 16, 2014
michaelwoerister/rust/various-fixes = 7c042cd merged ok, testing candidate = baa149b
bors commentedon Apr 16, 2014
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/5274
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/5270
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/4363
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/4376
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/5372
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/4459
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/4467
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/5374
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/4459
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/4465
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/4529
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2259
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/5369
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/4466
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/4479
bors commentedon Apr 16, 2014
fast-forwarding master to auto = baa149b