File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 86ebde575cc152a212aad2c39288533456e256ee
2
+ refs/heads/master: 084fe56ad528053cda5df1274b4e4452e7c0579c
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change 1
- // xfail-test
2
-
3
1
type quad = { a : u64 , b : u64 , c : u64 , d : u64 } ;
4
2
type floats = { a : f64 , b : u8 , c : f64 } ;
5
3
@@ -9,9 +7,7 @@ native mod rustrt {
9
7
fn debug_abi_2 ( ++f : floats ) -> floats ;
10
8
}
11
9
12
- fn main ( ) {
13
-
14
- // First check
10
+ fn test1 ( ) {
15
11
let q = { a: 0xaaaa_aaaa_aaaa_aaaa_u64 ,
16
12
b: 0xbbbb_bbbb_bbbb_bbbb_u64 ,
17
13
c: 0xcccc_cccc_cccc_cccc_u64 ,
@@ -25,8 +21,10 @@ fn main() {
25
21
assert qq. b == q. d - 1u64 ;
26
22
assert qq. c == q. a + 1u64 ;
27
23
assert qq. d == q. b - 1u64 ;
24
+ }
28
25
29
- // Second check
26
+ #[ cfg( target_arch = "x86_64" ) ]
27
+ fn test2 ( ) {
30
28
let f = { a: 1.234567890e-15_f64 ,
31
29
b: 0b_1010_1010_u8 ,
32
30
c: 1.0987654321e-15_f64 } ;
@@ -37,4 +35,13 @@ fn main() {
37
35
assert ff. a == f. c + 1.0 ;
38
36
assert ff. b == 0xff_u8 ;
39
37
assert ff. c == f. a - 1.0 ;
38
+ }
39
+
40
+ #[ cfg( target_arch = "x86" ) ]
41
+ fn test2 ( ) {
42
+ }
43
+
44
+ fn main ( ) {
45
+ test1 ( ) ;
46
+ test2 ( ) ;
40
47
}
You can’t perform that action at this time.
0 commit comments