test: fix x86stdcall test, r=burningtree.
This commit is contained in:
parent
10eb620537
commit
d1f771ca34
1 changed files with 7 additions and 5 deletions
|
@ -20,11 +20,13 @@ extern "stdcall" mod kernel32 {
|
|||
|
||||
#[cfg(target_os = "win32")]
|
||||
fn main() {
|
||||
unsafe {
|
||||
let expected = 1234u;
|
||||
kernel32::SetLastError(expected);
|
||||
let actual = kernel32::GetLastError();
|
||||
log(error, actual);
|
||||
assert (expected == actual);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue