Skip to content

Commit

Permalink
add rust_dbg_extern_identity_TwoDoubles to prevent check-fast failure
Browse files Browse the repository at this point in the history
  • Loading branch information
crabtw committed Apr 14, 2013
1 parent 4ad8ec3 commit 685c4d0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions src/rt/rust_builtin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/rt/rustrt.def.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions src/test/run-pass/issue-5754.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}

5 comments on commit 685c4d0

@bors
Copy link
Contributor

@bors bors commented on 685c4d0 Apr 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from sanxiyn
at crabtw@685c4d0

@bors
Copy link
Contributor

@bors bors commented on 685c4d0 Apr 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging crabtw/rust/x86_64_abi = 685c4d0 into auto

@bors
Copy link
Contributor

@bors bors commented on 685c4d0 Apr 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crabtw/rust/x86_64_abi = 685c4d0 merged ok, testing candidate = 79d4f14

@bors
Copy link
Contributor

@bors bors commented on 685c4d0 Apr 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 685c4d0 Apr 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = 79d4f14

Please sign in to comment.