We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83b0c2d commit 82e6780Copy full SHA for 82e6780
crates/symbol-check/tests/all.rs
@@ -75,6 +75,19 @@ fn test_core_symbols() {
75
.stderr_contains("from_utf8");
76
}
77
78
+#[test]
79
+fn test_visible_symbols() {
80
+ let t = TestTarget::from_env();
81
+ let dir = tempdir().unwrap();
82
+ let lib_out = dir.path().join("libfoo.rlib");
83
+ t.rustc_build(&input_dir().join("good_lib.rs"), &lib_out, |cmd| cmd);
84
+ let assert = t.symcheck_exe().arg(&lib_out).assert();
85
+ assert
86
+ .failure()
87
+ .stderr_contains("found 1 visible symbols")
88
+ .stderr_contains("name: \"good\"");
89
+}
90
+
91
mod exe_stack {
92
use super::*;
93
0 commit comments