Skip to content

Commit

Permalink
fix some broken "only-x86" compile directives
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed Jul 24, 2024
1 parent 6efba49 commit ac43dba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/run-make/raw-dylib-import-name-type/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// with expected output.
// See https://github.com/rust-lang/rust/pull/100732

//@ only-x86
//@ only-x86_64
//@ only-windows

use run_make_support::{cc, diff, is_msvc, run, rustc};
Expand Down
8 changes: 6 additions & 2 deletions tests/run-make/raw-dylib-stdcall-ordinal/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// such as stdcall.
// See https://github.com/rust-lang/rust/pull/90782

//@ only-x86
//@ only-x86_64
//@ only-windows

use run_make_support::{cc, diff, is_msvc, run, rustc};
Expand All @@ -32,5 +32,9 @@ fn main() {
.run();
};
let out = run("driver").stdout_utf8();
diff().expected_file("output.txt").actual_text("actual", out).normalize(r#"\r"#, "").run();
diff()
.expected_file("expected_output.txt")
.actual_text("actual", out)
.normalize(r#"\r"#, "")
.run();
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@ only-windows
//@ only-x86
//@ only-x86_64
#[link(name = "foo", kind = "raw-dylib", import_name_type = "unknown")]
//~^ ERROR unknown import name type `unknown`, expected one of: decorated, noprefix, undecorated
extern "C" { }
extern "C" {}

fn main() {}

0 comments on commit ac43dba

Please sign in to comment.