From bbcacddef691464e5abe373f95849670298c63a7 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Thu, 6 Aug 2020 12:11:49 -0400 Subject: 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. --- src/test/debuginfo/function-arguments-naked.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/test/debuginfo') diff --git a/src/test/debuginfo/function-arguments-naked.rs b/src/test/debuginfo/function-arguments-naked.rs index e88a99b322e..f8e6253448a 100644 --- a/src/test/debuginfo/function-arguments-naked.rs +++ b/src/test/debuginfo/function-arguments-naked.rs @@ -34,7 +34,5 @@ fn main() { #[naked] fn naked(x: usize, y: usize) { - zzz(); // #break + // #break } - -fn zzz() { () } -- cgit 1.4.1-3-g733a5