mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
84ac80f192
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
17 lines
542 B
Rust
17 lines
542 B
Rust
// Passing invalid files to -Z ls (which lists the symbols
|
|
// defined by a library crate) used to cause a segmentation fault.
|
|
// As this was fixed in #11262, this test checks that no segfault
|
|
// occurs when passing the invalid file `bar` to -Z ls.
|
|
// See https://github.com/rust-lang/rust/issues/11259
|
|
|
|
//@ ignore-cross-compile
|
|
|
|
use run_make_support::{rfs, rustc};
|
|
|
|
fn main() {
|
|
rustc().input("foo.rs").run();
|
|
rustc().arg("-Zls=root").input("foo").run();
|
|
rfs::create_file("bar");
|
|
rustc().arg("-Zls=root").input("bar").run();
|
|
}
|