Skip to content

Commit bbcacdd

Browse files
committed
Don't call a function in function-arguments-naked.rs
Fixes #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.
1 parent 4b0882c commit bbcacdd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/debuginfo/function-arguments-naked.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,5 @@ fn main() {
3434

3535
#[naked]
3636
fn naked(x: usize, y: usize) {
37-
zzz(); // #break
37+
// #break
3838
}
39-
40-
fn zzz() { () }

0 commit comments

Comments
 (0)