We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b78eee8 commit ad1c0e6Copy full SHA for ad1c0e6
src/test/run-pass/x86stdcall.rs
@@ -1,18 +1,17 @@
1
// xfail-stage0
2
3
#[cfg(target_os = "win32")]
4
-mod m {
5
- native "x86stdcall" mod kernel32 {
6
- fn SetLastError(uint err);
7
- fn GetLastError() -> uint;
8
- }
+native "x86stdcall" mod kernel32 {
+ fn SetLastError(uint err);
+ fn GetLastError() -> uint;
+}
9
10
- fn main() {
11
- auto expected = 10u;
12
- kernel32::SetLastError(expected);
13
- auto actual = kernel32::GetLastError();
14
- assert expected == actual;
15
+#[cfg(target_os = "win32")]
+fn main() {
+ auto expected = 10u;
+ kernel32::SetLastError(expected);
+ auto actual = kernel32::GetLastError();
+ assert expected == actual;
16
}
17
18
#[cfg(target_os = "macos")]
0 commit comments