Skip to content

Commit

Permalink
Replace println!(""); invocations with calls to a dummy function in…
Browse files Browse the repository at this point in the history
… debuginfo test
  • Loading branch information
jseyfried committed Jun 13, 2016
1 parent cc36e38 commit 2477341
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/test/debuginfo/function-arg-initialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
#![omit_gdb_pretty_printer_section]

fn immediate_args(a: isize, b: bool, c: f64) {
println!("") // #break
zzz(); // #break
}

struct BigStruct {
Expand All @@ -243,7 +243,7 @@ struct BigStruct {
}

fn non_immediate_args(a: BigStruct, b: BigStruct) {
println!("") // #break
zzz(); // #break
}

fn binding(a: i64, b: u64, c: f64) {
Expand All @@ -257,7 +257,7 @@ fn assignment(mut a: u64, b: u64, c: f64) {
}

fn function_call(x: u64, y: u64, z: f64) {
println!("Hi!") // #break
zzz(); // #break
}

fn identifier(x: u64, y: u64, z: f64) -> u64 {
Expand Down Expand Up @@ -333,3 +333,5 @@ fn main() {
while_expr(40, 41, 42);
loop_expr(43, 44, 45);
}

fn zzz() {()}

0 comments on commit 2477341

Please sign in to comment.