Skip to content

Commit deb9b33

Browse files
committed
---
yaml --- r: 6278 b: refs/heads/master c: f47f922 h: refs/heads/master v: v3
1 parent a6d4b80 commit deb9b33

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: dd5512ccb0ab15e695147d1060cba1d5171adffb
2+
refs/heads/master: f47f92235acd84e42cce4e31b36f507a460b0f53

trunk/src/test/run-pass/bitwise.rs

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1+
// -*- rust -*-
12

3+
#[cfg(target_arch = "x86")]
4+
fn target() {
5+
assert (-1000 >> 3 == 536870787);
6+
}
27

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+
}
314

4-
// -*- rust -*-
5-
fn main() {
15+
fn general() {
616
let a: int = 1;
717
let b: int = 2;
818
a ^= b;
@@ -18,5 +28,9 @@ fn main() {
1828
assert (0xf0 >> 4 == 0xf);
1929
assert (-16 >>> 2 == -4);
2030
assert (0b1010_1010 | 0b0101_0101 == 0xff);
21-
assert (-1000 >> 3 == 536870787);
31+
}
32+
33+
fn main() {
34+
general();
35+
target();
2236
}

0 commit comments

Comments
 (0)