mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
ad1c0e6308
Hopefully this puts out the burning win32 tinderbox
20 lines
383 B
Rust
20 lines
383 B
Rust
// xfail-stage0
|
|
|
|
#[cfg(target_os = "win32")]
|
|
native "x86stdcall" mod kernel32 {
|
|
fn SetLastError(uint err);
|
|
fn GetLastError() -> uint;
|
|
}
|
|
|
|
#[cfg(target_os = "win32")]
|
|
fn main() {
|
|
auto expected = 10u;
|
|
kernel32::SetLastError(expected);
|
|
auto actual = kernel32::GetLastError();
|
|
assert expected == actual;
|
|
}
|
|
|
|
#[cfg(target_os = "macos")]
|
|
#[cfg(target_os = "linux")]
|
|
fn main() {
|
|
} |