about summary refs log tree commit diff
path: root/tests/codegen
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-24 06:06:16 +0000
committerbors <bors@rust-lang.org>2024-06-24 06:06:16 +0000
commitb8e1d7ef6fcec31db99ef82d8a913a2a703e8944 (patch)
tree475052c1564920a30d5c4612177eafb17e7b72de /tests/codegen
parentaded2be375993cfb08c8d13be71c046bd048c5d2 (diff)
parentc660016cc1879d9714d134604856b5914f5d0aa0 (diff)
downloadrust-b8e1d7ef6fcec31db99ef82d8a913a2a703e8944.tar.gz
rust-b8e1d7ef6fcec31db99ef82d8a913a2a703e8944.zip
Auto merge of #3706 - rust-lang:rustup-2024-06-24, r=oli-obk
Automatic Rustup
Diffstat (limited to 'tests/codegen')
-rw-r--r--tests/codegen/force-frame-pointers.rs16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/codegen/force-frame-pointers.rs b/tests/codegen/force-frame-pointers.rs
index 84e0bcb39ad..88c918945d6 100644
--- a/tests/codegen/force-frame-pointers.rs
+++ b/tests/codegen/force-frame-pointers.rs
@@ -1,6 +1,18 @@
-//@ compile-flags: -C no-prepopulate-passes -C force-frame-pointers=y -Copt-level=0
+//@ revisions: Always NonLeaf
+//@ [Always] compile-flags: -Cforce-frame-pointers=yes
+//@ [NonLeaf] compile-flags: -Cforce-frame-pointers=non-leaf
+//@ compile-flags: -Zunstable-options
+//@ compile-flags: -C no-prepopulate-passes -Copt-level=0
+//@ [NonLeaf] ignore-illumos
+//@ [NonLeaf] ignore-openbsd
+//@ [NonLeaf] ignore-x86
+//@ [NonLeaf] ignore-x86_64-apple-darwin
+//@ [NonLeaf] ignore-windows-gnu
+//@ [NonLeaf] ignore-thumb
+// result is platform-dependent based on platform's frame pointer settings
 
 #![crate_type = "lib"]
 
-// CHECK: attributes #{{.*}} "frame-pointer"="all"
+// Always: attributes #{{.*}} "frame-pointer"="all"
+// NonLeaf: attributes #{{.*}} "frame-pointer"="non-leaf"
 pub fn foo() {}