File tree 4 files changed +24
-14
lines changed
4 files changed +24
-14
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ run-make/dump-mono-stats/Makefile
26
26
run-make/dylib-chain/Makefile
27
27
run-make/emit-path-unhashed/Makefile
28
28
run-make/emit-shared-files/Makefile
29
- run-make/emit-stack-sizes/Makefile
30
29
run-make/emit-to-stdout/Makefile
31
30
run-make/env-dep-info/Makefile
32
31
run-make/export-executable-symbols/Makefile
@@ -147,7 +146,6 @@ run-make/raw-dylib-link-ordinal/Makefile
147
146
run-make/raw-dylib-stdcall-ordinal/Makefile
148
147
run-make/redundant-libs/Makefile
149
148
run-make/remap-path-prefix-dwarf/Makefile
150
- run-make/remap-path-prefix/Makefile
151
149
run-make/reproducible-build-2/Makefile
152
150
run-make/reproducible-build/Makefile
153
151
run-make/return-non-c-like-enum-from-c/Makefile
Original file line number Diff line number Diff line change
1
+ #![ allow( internal_features) ]
1
2
#![ feature( rustc_attrs) ]
2
3
#![ deny( warnings) ]
3
4
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Running rustc with the -Z emit-stack-sizes
2
+ // flag enables diagnostics to seek stack overflows
3
+ // at compile time. This test compiles a rust file
4
+ // with this flag, then checks that the output object
5
+ // file contains the section "stack_sizes", where
6
+ // this diagnostics information should be located.
7
+ // See https://github.com/rust-lang/rust/pull/51946
8
+
9
+ //@ ignore-windows
10
+ //@ ignore-apple
11
+ // Reason: this feature only works when the output object format is ELF.
12
+ // This won't be the case on Windows/OSX - for example, OSX produces a Mach-O binary.
13
+
14
+ use run_make_support:: { llvm_readobj, rustc} ;
15
+
16
+ fn main ( ) {
17
+ rustc ( ) . opt_level ( "3" ) . arg ( "-Zemit-stack-sizes" ) . emit ( "obj" ) . input ( "foo.rs" ) . run ( ) ;
18
+ llvm_readobj ( )
19
+ . arg ( "--section-headers" )
20
+ . input ( "foo.o" )
21
+ . run ( )
22
+ . assert_stdout_contains ( ".stack_sizes" ) ;
23
+ }
You can’t perform that action at this time.
0 commit comments