Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debuginfo: Add test case for limited debuginfo
- Loading branch information
1 parent
e15fd40
commit a5b4d94
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
// ignore-android: FIXME(#10381) | ||
|
||
// compile-flags:-g1 | ||
|
||
// Make sure functions have proper names | ||
// debugger:info functions | ||
// check:static void limited-debuginfo::main(); | ||
// check:static void limited-debuginfo::some_function(); | ||
// check:static void limited-debuginfo::some_other_function(); | ||
// check:static void limited-debuginfo::zzz(); | ||
|
||
// debugger:rbreak zzz | ||
// debugger:run | ||
|
||
// Make sure there is no information about locals | ||
// debugger:finish | ||
// debugger:info locals | ||
// check:No locals. | ||
// debugger:continue | ||
|
||
|
||
#[allow(unused_variable)]; | ||
|
||
struct Struct { | ||
a: i64, | ||
b: i32 | ||
} | ||
|
||
fn main() { | ||
some_function(101, 202); | ||
} | ||
|
||
|
||
fn zzz() {()} | ||
|
||
fn some_function(a: int, b: int) { | ||
let some_variable = Struct { a: 11, b: 22 }; | ||
let some_other_variable = 23; | ||
zzz(); | ||
} | ||
|
||
fn some_other_function(a: int, b: int) -> bool { true } |
a5b4d94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at michaelwoerister@a5b4d94
a5b4d94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging michaelwoerister/rust/limited-debuginfo = a5b4d94 into auto
a5b4d94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
michaelwoerister/rust/limited-debuginfo = a5b4d94 merged ok, testing candidate = 14c6207
a5b4d94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/4604
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/2446
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/2446
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/4601
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/3701
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/3707
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/4617
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/3705
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/3711
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/4619
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/3705
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/3710
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/3778
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1596
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/4613
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/3714
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/3721
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/4378
a5b4d94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 14c6207