Skip to content

Commit

Permalink
Don't call a function in function-arguments-naked.rs
Browse files Browse the repository at this point in the history
Fixes rust-lang#75096

It's U.B. to use anything other than inline assmebling in a naked
function. Fortunately, the `#break` directive works fine without
anything in the function body.
  • Loading branch information
Aaron1011 committed Aug 6, 2020
1 parent 4b0882c commit bbcacdd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/test/debuginfo/function-arguments-naked.rs
Expand Up @@ -34,7 +34,5 @@ fn main() {

#[naked]
fn naked(x: usize, y: usize) {
zzz(); // #break
// #break
}

fn zzz() { () }

0 comments on commit bbcacdd

Please sign in to comment.