Skip to content

Commit

Permalink
Reformulate x86stdcall test so it works with check-fast
Browse files Browse the repository at this point in the history
Hopefully this puts out the burning win32 tinderbox
  • Loading branch information
brson committed Jul 18, 2011
1 parent b78eee8 commit ad1c0e6
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/test/run-pass/x86stdcall.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
// xfail-stage0

#[cfg(target_os = "win32")]
mod m {
native "x86stdcall" mod kernel32 {
fn SetLastError(uint err);
fn GetLastError() -> uint;
}
native "x86stdcall" mod kernel32 {
fn SetLastError(uint err);
fn GetLastError() -> uint;
}

fn main() {
auto expected = 10u;
kernel32::SetLastError(expected);
auto actual = kernel32::GetLastError();
assert expected == actual;
}
#[cfg(target_os = "win32")]
fn main() {
auto expected = 10u;
kernel32::SetLastError(expected);
auto actual = kernel32::GetLastError();
assert expected == actual;
}

#[cfg(target_os = "macos")]
Expand Down

0 comments on commit ad1c0e6

Please sign in to comment.