File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed
tests/run-make/ls-metadata Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,6 @@ run-make/llvm-outputs/Makefile
125125run-make/long-linker-command-lines-cmd-exe/Makefile
126126run-make/long-linker-command-lines/Makefile
127127run-make/longjmp-across-rust/Makefile
128- run-make/ls-metadata/Makefile
129128run-make/lto-dylib-dep/Makefile
130129run-make/lto-empty/Makefile
131130run-make/lto-linkage-used-attr/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // Passing invalid files to -Z ls (which lists the symbols
2+ // defined by a library crate) used to cause a segmentation fault.
3+ // As this was fixed in #11262, this test checks that no segfault
4+ // occurs when passing the invalid file `bar` to -Z ls.
5+ // See https://github.com/rust-lang/rust/issues/11259
6+
7+ //@ ignore-cross-compile
8+
9+ use run_make_support:: fs_wrapper;
10+ use run_make_support:: { rmake_out_path, rustc} ;
11+
12+ fn main ( ) {
13+ rustc ( ) . input ( "foo.rs" ) ;
14+ rustc ( ) . arg ( "-Zls=root" ) . input ( rmake_out_path ( "foo" ) ) ;
15+ fs_wrapper:: create_file ( rmake_out_path ( "bar" ) ) ;
16+ rustc ( ) . arg ( "-Zls=root" ) . input ( rmake_out_path ( "bar" ) ) ;
17+ }
You can’t perform that action at this time.
0 commit comments