Skip to content

Commit e21161b

Browse files
committed
test: Fix run-pass/enum-mach-type-compat on x86
1 parent 60ec812 commit e21161b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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)