mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
cda9a68248
By convention, compiletest directives starting with `ignore-*` normally cause the test itself to be skipped under certain conditions. The `//@ ignore-pass` directive was the only exception to that convention. The new name should hopefully do a better job of communicating its effect, which is to cause the `--pass` flag to not override the test's `build-pass` or `run-pass` directive. The `//@ no-pass-override` directive is mainly useful for tests that expect warnings produced during codegen.
19 lines
632 B
Rust
19 lines
632 B
Rust
//! Test that linking a no_std application still outputs the
|
|
//! `native-static-libs: ` note, even though it is empty.
|
|
|
|
//@ compile-flags: -Cpanic=abort --print=native-static-libs
|
|
//@ build-pass
|
|
//@ dont-check-compiler-stderr (libcore links `/defaultlib:msvcrt` or `/defaultlib:libcmt` on MSVC)
|
|
//@ no-pass-override (the note is emitted later in the compilation pipeline, needs build)
|
|
|
|
#![crate_type = "staticlib"]
|
|
#![no_std]
|
|
|
|
#[panic_handler]
|
|
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
|
loop {}
|
|
}
|
|
|
|
//~? NOTE native-static-libs:
|
|
//~? NOTE link against the following native artifacts when linking against this static library
|