File tree 3 files changed +17
-9
lines changed
tests/run-make/ls-metadata
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
125
125
run-make/long-linker-command-lines-cmd-exe/Makefile
126
126
run-make/long-linker-command-lines/Makefile
127
127
run-make/longjmp-across-rust/Makefile
128
- run-make/ls-metadata/Makefile
129
128
run-make/lto-dylib-dep/Makefile
130
129
run-make/lto-empty/Makefile
131
130
run-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