test: Fix run-pass/enum-mach-type-compat on x86

This commit is contained in:
Brian Anderson 2012-04-25 16:06:57 -07:00
parent 60ec812b3a
commit e21161b336

View File

@ -11,12 +11,24 @@ enum result<T, U> {
type error = int;
#[cfg(target_arch = "x86_64")]
fn get_fd() -> result<int, error> {
getsockopt_i64()
}
#[cfg(target_arch = "x86_64")]
fn getsockopt_i64() -> result<i64, error> {
fail
}
#[cfg(target_arch = "x86")]
fn get_fd() -> result<int, error> {
getsockopt_i32()
}
#[cfg(target_arch = "x86")]
fn getsockopt_i32() -> result<i32, error> {
fail
}
fn main() { }