File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed
tests/run-make/llvm-outputs Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // test that directories get created when emitting llvm bitcode and IR
2
+
3
+ use run_make_support:: { rustc, run_in_tmpdir, cwd} ;
4
+ use std:: path:: PathBuf ;
5
+
6
+ fn main ( ) {
7
+ let mut path_bc = PathBuf :: new ( ) ;
8
+ let mut path_ir = PathBuf :: new ( ) ;
9
+ run_in_tmpdir ( || {
10
+ let p = cwd ( ) ;
11
+ path_bc = p. join ( "nonexistant_dir_bc" ) ;
12
+ path_ir = p. join ( "nonexistant_dir_ir" ) ;
13
+ rustc ( ) . input ( "-" ) . stdin ( "fn main() {}" )
14
+ . out_dir ( & path_bc) . arg ( "--emit=llvm-bc" ) . run ( ) ;
15
+ rustc ( ) . input ( "-" ) . stdin ( "fn main() {}" )
16
+ . out_dir ( & path_ir) . arg ( "--emit=llvm-ir" ) . run ( ) ;
17
+ assert ! ( path_bc. exists( ) ) ;
18
+ assert ! ( path_ir. exists( ) ) ;
19
+ } ) ;
20
+ assert ! ( !path_bc. exists( ) ) ;
21
+ assert ! ( !path_ir. exists( ) ) ;
22
+ }
You can’t perform that action at this time.
0 commit comments