File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
branches/try/src/test/run-pass Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 60ec812b3a71706e70afda22232492510149c4c7
5
+ refs/heads/try: e21161b336af6308ddb8cacf628369037ccd134a
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -11,12 +11,24 @@ enum result<T, U> {
11
11
12
12
type error = int ;
13
13
14
+ #[ cfg( target_arch = "x86_64" ) ]
14
15
fn get_fd ( ) -> result < int , error > {
15
16
getsockopt_i64 ( )
16
17
}
17
18
19
+ #[ cfg( target_arch = "x86_64" ) ]
18
20
fn getsockopt_i64 ( ) -> result < i64 , error > {
19
21
fail
20
22
}
21
23
24
+ #[ cfg( target_arch = "x86" ) ]
25
+ fn get_fd ( ) -> result < int , error > {
26
+ getsockopt_i32 ( )
27
+ }
28
+
29
+ #[ cfg( target_arch = "x86" ) ]
30
+ fn getsockopt_i32 ( ) -> result < i32 , error > {
31
+ fail
32
+ }
33
+
22
34
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments