File tree Expand file tree Collapse file tree 4 files changed +18
-8
lines changed
tests/run-make/multiple-emits Expand file tree Collapse file tree 4 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ pub fn htmldocck() -> Command {
7676 python
7777}
7878
79+ /// Returns the path for a local test file.
80+ pub fn path < P : AsRef < Path > > ( p : P ) -> PathBuf {
81+ cwd ( ) . join ( p. as_ref ( ) )
82+ }
83+
7984/// Path to the root rust-lang/rust source checkout.
8085pub fn source_root ( ) -> PathBuf {
8186 env_var ( "SOURCE_ROOT" ) . into ( )
Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ run-make/mismatching-target-triples/Makefile
144144run-make/missing-crate-dependency/Makefile
145145run-make/mixing-libs/Makefile
146146run-make/msvc-opt-minsize/Makefile
147- run-make/multiple-emits/Makefile
148147run-make/native-link-modifier-bundle/Makefile
149148run-make/native-link-modifier-verbatim-linker/Makefile
150149run-make/native-link-modifier-verbatim-rustc/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ use run_make_support:: { cwd, path, rustc} ;
2+
3+ fn main ( ) {
4+ rustc ( ) . input ( "foo.rs" ) . emit ( "asm,llvm-ir" ) . output ( "out" ) . run ( ) ;
5+
6+ assert ! ( path( "out.ll" ) . is_file( ) ) ;
7+ assert ! ( path( "out.s" ) . is_file( ) ) ;
8+
9+ rustc ( ) . input ( "foo.rs" ) . emit ( "asm,llvm-ir" ) . output ( "out2.ext" ) . run ( ) ;
10+
11+ assert ! ( path( "out2.ll" ) . is_file( ) ) ;
12+ assert ! ( path( "out2.s" ) . is_file( ) ) ;
13+ }
You can’t perform that action at this time.
0 commit comments