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