add rust_dbg_extern_identity_TwoDoubles to prevent check-fast failure

This commit is contained in:
Jyun-Yan You 2013-04-14 13:15:46 +08:00
parent 4ad8ec351a
commit 685c4d0b76
3 changed files with 15 additions and 3 deletions

View file

@ -866,6 +866,16 @@ rust_dbg_extern_identity_TwoU64s(TwoU64s u) {
return u;
}
struct TwoDoubles {
double one;
double two;
};
extern "C" CDECL TwoDoubles
rust_dbg_extern_identity_TwoDoubles(TwoDoubles u) {
return u;
}
extern "C" CDECL double
rust_dbg_extern_identity_double(double u) {
return u;

View file

@ -199,6 +199,7 @@ rust_opendir
rust_dbg_extern_identity_u32
rust_dbg_extern_identity_u64
rust_dbg_extern_identity_TwoU64s
rust_dbg_extern_identity_TwoDoubles
rust_dbg_extern_identity_double
rust_dbg_extern_identity_u8
rust_get_rt_env

View file

@ -8,12 +8,13 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
struct S {
r: float
struct TwoDoubles {
r: float,
i: float
}
extern "C" {
fn rust_dbg_extern_identity_double(arg1: S) -> float;
fn rust_dbg_extern_identity_TwoDoubles(arg1: TwoDoubles) -> TwoDoubles;
}
pub fn main() {}