File tree Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 4848 << : *job-linux-16c
4949 - name : x86_64-gnu-tools
5050 << : *job-linux-16c
51+ - name : x86_64-msvc
52+ env :
53+ RUST_CONFIGURE_ARGS : --build=x86_64-pc-windows-msvc --enable-profiler
54+ SCRIPT : make ci-msvc
55+ << : *job-windows-8c
Original file line number Diff line number Diff line change 1+ // Ensure that env::vars() does not panic if environ is null.
2+ // Regression test for rust-lang/rust#53200
13//@ run-pass
24
3- #![ allow( unused_imports) ]
4-
5- //@ ignore-windows
6-
7- // issue-53200
8-
95#![ feature( rustc_private) ]
10- extern crate libc;
11-
12- use std:: env;
136
147// FIXME: more platforms?
158#[ cfg( target_os = "linux" ) ]
169fn main ( ) {
10+ extern crate libc;
1711 unsafe { libc:: clearenv ( ) ; }
18- assert_eq ! ( env:: vars( ) . count( ) , 0 ) ;
12+ assert_eq ! ( std :: env:: vars( ) . count( ) , 0 ) ;
1913}
2014
2115#[ cfg( not( target_os = "linux" ) ) ]
Original file line number Diff line number Diff line change 88//@ ignore-fuchsia must translate zircon signal to SIGABRT, FIXME (#58590)
99//@ ignore-nto no stack overflow handler used (no alternate stack available)
1010
11- #![ feature( core_intrinsics) ]
1211#![ feature( rustc_private) ]
1312
1413#[ cfg( unix) ]
1514extern crate libc;
1615
1716use std:: env;
17+ use std:: hint:: black_box;
1818use std:: process:: Command ;
1919use std:: thread;
2020
21- // Inlining to avoid llvm turning the recursive functions into tail calls,
22- // which doesn't consume stack.
23- #[ inline( always) ]
24- pub fn black_box < T > ( dummy : T ) { std:: intrinsics:: black_box ( dummy) ; }
25-
2621fn silent_recurse ( ) {
2722 let buf = [ 0u8 ; 1000 ] ;
2823 black_box ( buf) ;
Original file line number Diff line number Diff line change 2020//@ error-pattern: Location is heap block of size 4
2121//@ error-pattern: allocated by main thread
2222
23- #![ feature( raw_ref_op) ]
2423#![ feature( rustc_private) ]
2524extern crate libc;
2625
You can’t perform that action at this time.
0 commit comments