about summary refs log tree commit diff
path: root/src/test/debuginfo
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-08-06 12:11:49 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-08-06 12:12:59 -0400
commitbbcacddef691464e5abe373f95849670298c63a7 (patch)
tree0af4f6bcebceb050bd9e3a2f7883a9d7967c486b /src/test/debuginfo
parent4b0882cfaa33de2796eac01afeac69097fbccbd2 (diff)
downloadrust-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.rs4
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() { () }