File tree Expand file tree Collapse file tree 4 files changed +24
-14
lines changed Expand file tree Collapse file tree 4 files changed +24
-14
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ run-make/dump-mono-stats/Makefile
2727run-make/dylib-chain/Makefile
2828run-make/emit-path-unhashed/Makefile
2929run-make/emit-shared-files/Makefile
30- run-make/emit-stack-sizes/Makefile
3130run-make/emit-to-stdout/Makefile
3231run-make/env-dep-info/Makefile
3332run-make/error-writing-dependencies/Makefile
@@ -156,7 +155,6 @@ run-make/redundant-libs/Makefile
156155run-make/relocation-model/Makefile
157156run-make/relro-levels/Makefile
158157run-make/remap-path-prefix-dwarf/Makefile
159- run-make/remap-path-prefix/Makefile
160158run-make/reproducible-build-2/Makefile
161159run-make/reproducible-build/Makefile
162160run-make/return-non-c-like-enum-from-c/Makefile
Original file line number Diff line number Diff line change 1+ #![ allow( internal_features) ]  
12#![ feature( rustc_attrs) ]  
23#![ deny( warnings) ]  
34
  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