diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-08-06 12:11:49 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-08-06 12:12:59 -0400 |
| commit | bbcacddef691464e5abe373f95849670298c63a7 (patch) | |
| tree | 0af4f6bcebceb050bd9e3a2f7883a9d7967c486b /src/test/debuginfo | |
| parent | 4b0882cfaa33de2796eac01afeac69097fbccbd2 (diff) | |
| download | rust-bbcacddef691464e5abe373f95849670298c63a7.tar.gz rust-bbcacddef691464e5abe373f95849670298c63a7.zip | |
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.
Diffstat (limited to 'src/test/debuginfo')
| -rw-r--r-- | src/test/debuginfo/function-arguments-naked.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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() { () } |
