Skip to content

Commit 318ddf6

Browse files
committed
---
yaml --- r: 3980 b: refs/heads/master c: ad1c0e6 h: refs/heads/master v: v3
1 parent 3c065b8 commit 318ddf6

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b78eee873209de3933e3e30c541a6a7350b3da36
2+
refs/heads/master: ad1c0e6308c8e60536c801f8fc8889e8fba4b348

trunk/src/test/run-pass/x86stdcall.rs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
// xfail-stage0
22

33
#[cfg(target_os = "win32")]
4-
mod m {
5-
native "x86stdcall" mod kernel32 {
6-
fn SetLastError(uint err);
7-
fn GetLastError() -> uint;
8-
}
4+
native "x86stdcall" mod kernel32 {
5+
fn SetLastError(uint err);
6+
fn GetLastError() -> uint;
7+
}
98

10-
fn main() {
11-
auto expected = 10u;
12-
kernel32::SetLastError(expected);
13-
auto actual = kernel32::GetLastError();
14-
assert expected == actual;
15-
}
9+
#[cfg(target_os = "win32")]
10+
fn main() {
11+
auto expected = 10u;
12+
kernel32::SetLastError(expected);
13+
auto actual = kernel32::GetLastError();
14+
assert expected == actual;
1615
}
1716

1817
#[cfg(target_os = "macos")]

0 commit comments

Comments
 (0)