We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
any_symbol_contains
1 parent a604303 commit b564b70Copy full SHA for b564b70
tests/run-make/used/rmake.rs
@@ -4,12 +4,11 @@
4
// It comes from #39987 which implements this RFC for the #[used] attribute:
5
// https://rust-lang.github.io/rfcs/2386-used.html
6
7
-//@ ignore-msvc
8
-
9
-use run_make_support::{cmd, rustc};
+use run_make_support::rustc;
+use run_make_support::symbols::any_symbol_contains;
10
11
fn main() {
12
rustc().opt_level("3").emit("obj").input("used.rs").run();
13
14
- cmd("nm").arg("used.o").run().assert_stdout_contains("FOO");
+ assert!(any_symbol_contains("used.o", &["FOO"]));
+ assert!(!any_symbol_contains("used.o", &["BAR"]));
15
}
0 commit comments