Skip to content

Commit 2da7002

Browse files
committed
---
yaml --- r: 96188 b: refs/heads/dist-snap c: 02e565a h: refs/heads/master v: v3
1 parent 0116053 commit 2da7002

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 5b534e4a22d914e284c650f4504789c2678961bd
9+
refs/heads/dist-snap: 02e565a187adc0b5a7348852de664be26eb1701c
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/test/auxiliary/extern_calling_convention.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,26 @@
1212
// functions.
1313

1414
#[inline(never)]
15+
#[cfg(target_arch = "x86_64")]
1516
pub extern "win64" fn foo(a: int, b: int, c: int, d: int) {
1617
assert!(a == 1);
1718
assert!(b == 2);
1819
assert!(c == 3);
1920
assert!(d == 4);
20-
21+
2122
println!("a: {:?}, b: {:?}, c: {:?}, d: {:?}",
2223
a, b, c, d)
2324
}
2425

25-
fn main() {
26-
foo(1, 2, 3, 4)
26+
#[inline(never)]
27+
#[cfg(target_arch = "x86")]
28+
#[cfg(target_arch = "arm")]
29+
pub extern fn foo(a: int, b: int, c: int, d: int) {
30+
assert!(a == 1);
31+
assert!(b == 2);
32+
assert!(c == 3);
33+
assert!(d == 4);
34+
35+
println!("a: {:?}, b: {:?}, c: {:?}, d: {:?}",
36+
a, b, c, d)
2737
}

0 commit comments

Comments
 (0)