Skip to content

Commit 685bde9

Browse files
committed
---
yaml --- r: 93776 b: refs/heads/try c: 02e565a h: refs/heads/master v: v3
1 parent 5230750 commit 685bde9

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: 5b534e4a22d914e284c650f4504789c2678961bd
5+
refs/heads/try: 02e565a187adc0b5a7348852de664be26eb1701c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)