Skip to content

Commit 3963b2e

Browse files
test: for frame-pointer=non-leaf codegen opts
1 parent 365fc65 commit 3963b2e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/codegen/force-frame-pointers.rs

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
//@ compile-flags: -C no-prepopulate-passes -C force-frame-pointers=y -Copt-level=0
1+
//@ revisions: always non-leaf
2+
//@ [Always] compile-flags: -Cforce-frame-pointers=yes
3+
//@ [NonLeaf] compile-flags: -Cforce-frame-pointers=non-leaf
4+
//@ compile-flags: -Zunstable-options
5+
//@ compile-flags: -C no-prepopulate-passes -Copt-level=0
26

3-
#![crate_type="lib"]
7+
#![crate_type = "lib"]
48

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

0 commit comments

Comments
 (0)