Reformulate x86stdcall test so it works with check-fast

Hopefully this puts out the burning win32 tinderbox
This commit is contained in:
Brian Anderson 2011-07-18 14:59:44 -07:00
parent b78eee8732
commit ad1c0e6308

View File

@ -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")]