File tree 3 files changed +18
-9
lines changed
tests/run-make/output-with-hyphens
3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,6 @@ run-make/optimization-remarks-dir/Makefile
157
157
run-make/output-filename-conflicts-with-directory/Makefile
158
158
run-make/output-filename-overwrites-input/Makefile
159
159
run-make/output-type-permutations/Makefile
160
- run-make/output-with-hyphens/Makefile
161
160
run-make/override-aliased-flags/Makefile
162
161
run-make/overwrite-input/Makefile
163
162
run-make/panic-abort-eh_frame/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Rust files with hyphens in their filename should
2
+ // not result in compiled libraries keeping that hyphen -
3
+ // it should become an underscore. Only bin executables
4
+ // should keep the hyphen. This test ensures that this rule
5
+ // remains enforced.
6
+ // See https://github.com/rust-lang/rust/pull/23786
7
+
8
+ //@ ignore-cross-compile
9
+
10
+ use run_make_support:: rustc;
11
+ use std:: path:: Path ;
12
+
13
+ fn main ( ) {
14
+ rustc ( ) . input ( "foo-bar.rs" ) . crate_type ( "bin" ) . run ( ) ;
15
+ Path :: new ( bin_name ( "foo-bar" ) ) . exists ( ) ;
16
+ rustc ( ) . input ( "foo-bar.rs" ) . crate_type ( "lib" ) . run ( ) ;
17
+ Path :: new ( bin_name ( "libfoo_bar.rlib" ) ) . exists ( ) ;
18
+ }
You can’t perform that action at this time.
0 commit comments