This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
tests/run-make/fmt-write-bloat Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 5
5
use core:: fmt;
6
6
use core:: fmt:: Write ;
7
7
8
- #[ link( name = "c" ) ]
8
+ #[ cfg_attr( not( target_env = "msvc" ) , link( name = "c" ) ) ]
9
+ #[ cfg_attr( target_env = "msvc" , link( name = "libcmt" ) ) ]
9
10
extern "C" { }
10
11
11
12
struct Dummy ;
Original file line number Diff line number Diff line change 15
15
//! `NO_DEBUG_ASSERTIONS=1`). If debug assertions are disabled, then we can check for the absence of
16
16
//! additional `usize` formatting and padding related symbols.
17
17
18
- // Reason: This test is `ignore-windows` because the `no_std` test (using `#[link(name = "c")])`
19
- // doesn't link on windows.
20
- //@ ignore-windows
21
18
//@ ignore-cross-compile
22
19
23
20
use run_make_support:: env:: no_debug_assertions;
24
- use run_make_support:: rustc;
25
21
use run_make_support:: symbols:: any_symbol_contains;
22
+ use run_make_support:: { bin_name, rustc} ;
26
23
27
24
fn main ( ) {
28
25
rustc ( ) . input ( "main.rs" ) . opt ( ) . run ( ) ;
@@ -33,5 +30,5 @@ fn main() {
33
30
// otherwise, add them to the list of symbols to deny.
34
31
panic_syms. extend_from_slice ( & [ "panicking" , "panic_fmt" , "pad_integral" , "Display" ] ) ;
35
32
}
36
- assert ! ( !any_symbol_contains( "main" , & panic_syms) ) ;
33
+ assert ! ( !any_symbol_contains( & bin_name ( "main" ) , & panic_syms) ) ;
37
34
}
You can’t perform that action at this time.
0 commit comments