File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: b78eee873209de3933e3e30c541a6a7350b3da36
2
+ refs/heads/master: ad1c0e6308c8e60536c801f8fc8889e8fba4b348
Original file line number Diff line number Diff line change 1
1
// xfail-stage0
2
2
3
3
#[ 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
+ }
9
8
10
- fn main ( ) {
11
- auto expected = 10 u ;
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 = 10 u ;
12
+ kernel32:: SetLastError ( expected ) ;
13
+ auto actual = kernel32 :: GetLastError ( ) ;
14
+ assert expected == actual ;
16
15
}
17
16
18
17
#[ cfg( target_os = "macos" ) ]
You can’t perform that action at this time.
0 commit comments