mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Reformulate x86stdcall test so it works with check-fast
Hopefully this puts out the burning win32 tinderbox
This commit is contained in:
parent
b78eee8732
commit
ad1c0e6308
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user