diff --git a/src/test/run-pass/enum-mach-type-compat.rs b/src/test/run-pass/enum-mach-type-compat.rs index 5b01c863134..44c1a5d16d7 100644 --- a/src/test/run-pass/enum-mach-type-compat.rs +++ b/src/test/run-pass/enum-mach-type-compat.rs @@ -11,12 +11,24 @@ enum result { type error = int; +#[cfg(target_arch = "x86_64")] fn get_fd() -> result { getsockopt_i64() } +#[cfg(target_arch = "x86_64")] fn getsockopt_i64() -> result { fail } +#[cfg(target_arch = "x86")] +fn get_fd() -> result { + getsockopt_i32() +} + +#[cfg(target_arch = "x86")] +fn getsockopt_i32() -> result { + fail +} + fn main() { } \ No newline at end of file