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 @@ -108,7 +108,6 @@ run-make/llvm-ident/Makefile
108
108
run-make/long-linker-command-lines-cmd-exe/Makefile
109
109
run-make/long-linker-command-lines/Makefile
110
110
run-make/longjmp-across-rust/Makefile
111
- run-make/ls-metadata/Makefile
112
111
run-make/lto-dylib-dep/Makefile
113
112
run-make/lto-empty/Makefile
114
113
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