We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ignore-cross-compile
1 parent 41afd5f commit d6949a1Copy full SHA for d6949a1
1 file changed
tests/run-make/naked-dead-code-elimination/rmake.rs
@@ -1,13 +1,22 @@
1
+//@ ignore-cross-compile
2
//@ needs-asm-support
3
4
use run_make_support::symbols::object_contains_any_symbol;
5
use run_make_support::{bin_name, rustc};
6
7
fn main() {
8
+ rustc().input("main.rs").opt().function_sections(false).run();
9
+ check();
10
+
11
rustc().input("main.rs").opt().function_sections(true).run();
12
13
+}
14
15
+fn check() {
16
let bin = bin_name("main");
17
18
+ assert!(object_contains_any_symbol(&bin, &["used"]));
19
20
// Check that the naked symbol is eliminated when the "clothed" one is.
21
22
assert_eq!(
0 commit comments