Skip to content

Commit ad1c0e6

Browse files
committed
Reformulate x86stdcall test so it works with check-fast
Hopefully this puts out the burning win32 tinderbox
1 parent b78eee8 commit ad1c0e6

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/test/run-pass/x86stdcall.rs

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
// xfail-stage0
22

33
#[cfg(target_os = "win32")]
4-
mod m {
5-
native "x86stdcall" mod kernel32 {
6-
fn SetLastError(uint err);
7-
fn GetLastError() -> uint;
8-
}
4+
native "x86stdcall" mod kernel32 {
5+
fn SetLastError(uint err);
6+
fn GetLastError() -> uint;
7+
}
98

10-
fn main() {
11-
auto expected = 10u;
12-
kernel32::SetLastError(expected);
13-
auto actual = kernel32::GetLastError();
14-
assert expected == actual;
15-
}
9+
#[cfg(target_os = "win32")]
10+
fn main() {
11+
auto expected = 10u;
12+
kernel32::SetLastError(expected);
13+
auto actual = kernel32::GetLastError();
14+
assert expected == actual;
1615
}
1716

1817
#[cfg(target_os = "macos")]

0 commit comments

Comments
 (0)