File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: dd5512ccb0ab15e695147d1060cba1d5171adffb
2
+ refs/heads/master: f47f92235acd84e42cce4e31b36f507a460b0f53
Original file line number Diff line number Diff line change
1
+ // -*- rust -*-
1
2
3
+ #[ cfg( target_arch = "x86" ) ]
4
+ fn target ( ) {
5
+ assert ( -1000 >> 3 == 536870787 ) ;
6
+ }
2
7
8
+ #[ cfg( target_arch = "x86_64" ) ]
9
+ fn target ( ) {
10
+ // FIXME (974) Can't lex this as a single integer
11
+ assert ( -1000 >> 3 == 23058430 * 1000000000 * 100
12
+ + 92 * 100000000 + 13693827 ) ;
13
+ }
3
14
4
- // -*- rust -*-
5
- fn main ( ) {
15
+ fn general ( ) {
6
16
let a: int = 1 ;
7
17
let b: int = 2 ;
8
18
a ^= b;
@@ -18,5 +28,9 @@ fn main() {
18
28
assert ( 0xf0 >> 4 == 0xf ) ;
19
29
assert ( -16 >>> 2 == -4 ) ;
20
30
assert ( 0b1010_1010 | 0b0101_0101 == 0xff ) ;
21
- assert ( -1000 >> 3 == 536870787 ) ;
31
+ }
32
+
33
+ fn main ( ) {
34
+ general ( ) ;
35
+ target ( ) ;
22
36
}
You can’t perform that action at this time.
0 commit comments