Skip to content

Commit

Permalink
test: for frame-pointer=non-leaf codegen opts
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed May 14, 2024
1 parent 365fc65 commit 3aa0ef2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/codegen/force-frame-pointers.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
//@ 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

#![crate_type="lib"]
#![crate_type = "lib"]

// CHECK: attributes #{{.*}} "frame-pointer"="all"
// Always: attributes #{{.*}} "frame-pointer"="all"
// NonLeaf: attributes #{{.*}} "frame-pointer"="non-leaf"
pub fn foo() {}

0 comments on commit 3aa0ef2

Please sign in to comment.