Skip to content

Commit 305d40f

Browse files
committed
---
yaml --- r: 89941 b: refs/heads/master c: 02e565a h: refs/heads/master i: 89939: a885e94 v: v3
1 parent dd7fece commit 305d40f

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5b534e4a22d914e284c650f4504789c2678961bd
2+
refs/heads/master: 02e565a187adc0b5a7348852de664be26eb1701c
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/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)