Skip to content

Commit a32b8a0

Browse files
committed
---
yaml --- r: 15646 b: refs/heads/try c: e21161b h: refs/heads/master v: v3
1 parent a18790d commit a32b8a0

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 60ec812b3a71706e70afda22232492510149c4c7
5+
refs/heads/try: e21161b336af6308ddb8cacf628369037ccd134a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/test/run-pass/enum-mach-type-compat.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,24 @@ enum result<T, U> {
1111

1212
type error = int;
1313

14+
#[cfg(target_arch = "x86_64")]
1415
fn get_fd() -> result<int, error> {
1516
getsockopt_i64()
1617
}
1718

19+
#[cfg(target_arch = "x86_64")]
1820
fn getsockopt_i64() -> result<i64, error> {
1921
fail
2022
}
2123

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+
2234
fn main() { }

0 commit comments

Comments
 (0)