File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed
tests/run-make/msvc-opt-minsize Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,6 @@ run-make/mingw-export-call-convention/Makefile
107107run-make/mismatching-target-triples/Makefile
108108run-make/missing-crate-dependency/Makefile
109109run-make/mixing-libs/Makefile
110- run-make/msvc-opt-minsize/Makefile
111110run-make/native-link-modifier-bundle/Makefile
112111run-make/native-link-modifier-whole-archive/Makefile
113112run-make/no-alloc-shim/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // A previously outdated version of LLVM caused compilation failures on Windows
2+ // specifically with optimization level `z`. After the update to a more recent LLVM
3+ // version, this test checks that compilation and execution both succeed.
4+ // See https://github.com/rust-lang/rust/issues/45034
5+
6+ // NOTE: This isn't an UI test despite its simplicity, because UI tests
7+ // cannot contain opt-level modifications.
8+
9+ //@ ignore-cross-compile
10+ // Reason: the compiled binary is executed
11+ //@ only-windows
12+ // Reason: the observed bug only occurs on Windows
13+
14+ use run_make_support:: { run, rustc} ;
15+
16+ fn main ( ) {
17+ rustc ( ) . input ( "foo.rs" ) . opt_level ( "z" ) . run ( ) ;
18+ run ( "foo" ) ;
19+ }
You can’t perform that action at this time.
0 commit comments