File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,6 @@ run-make/unknown-mod-stdin/Makefile
255255run-make/unstable-flag-required/Makefile
256256run-make/use-suggestions-rust-2018/Makefile
257257run-make/used-cdylib-macos/Makefile
258- run-make/used/Makefile
259258run-make/volatile-intrinsics/Makefile
260259run-make/wasm-exceptions-nostd/Makefile
261260run-make/wasm-override-linker/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ use run_make_support:: { rustc, tmp_dir} ;
2+ use std:: process:: Command ;
3+
4+ fn main ( ) {
5+ rustc ( ) . opt_level ( "3" ) . emit ( "obj" ) . input ( "used.rs" ) . run ( ) ;
6+
7+ let output = Command :: new ( "nm" ) . arg ( tmp_dir ( ) . join ( "used.o" ) ) . output ( ) . unwrap ( ) ;
8+
9+ assert ! ( output. status. success( ) ) ;
10+ let stdout = String :: from_utf8_lossy ( & output. stdout ) ;
11+ if !stdout. contains ( "FOO" ) {
12+ panic ! ( "`FOO` not found in stdout:\n `{stdout}`" ) ;
13+ }
14+ }
You can’t perform that action at this time.
0 commit comments