Skip to content

Commit c11a1ca

Browse files
catamorphismgraydon
authored andcommitted
---
yaml --- r: 1793 b: refs/heads/master c: 8556b2c h: refs/heads/master i: 1791: 85b2f30 v: v3
1 parent 95b7c3d commit c11a1ca

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
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: 1689d999650d454b667c57c028b808e5aa0e49d2
2+
refs/heads/master: 8556b2c1ad9328ceebb32e934179bcb8a3c0794f

trunk/src/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,10 @@ self: $(CFG_RUSTC)
417417
# Testing
418418
######################################################################
419419

420+
# Float doesn't work in boot
421+
422+
FLOAT_XFAILS := test/run-pass/float.rs
423+
420424
# Temporarily xfail tests broken by the nominal-tags change.
421425

422426
NOMINAL_TAG_XFAILS := test/run-pass/mlist.rs
@@ -442,6 +446,7 @@ TASK_XFAILS := test/run-pass/task-comm-8.rs \
442446
TEST_XFAILS_BOOT := $(TASK_XFAILS) \
443447
$(NOMINAL_TAG_XFAILS) \
444448
$(CONST_TAG_XFAILS) \
449+
$(FLOAT_XFAILS) \
445450
test/run-pass/arith-unsigned.rs \
446451
test/run-pass/box-compare.rs \
447452
test/run-pass/child-outlives-parent.rs \

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
fn main() {
2+
auto pi = 3.1415927;
3+
4+
log(-pi * (pi + (2.0/pi)) - (pi * 5.0));
5+
if(pi == 5.0 || pi < 10.0 || pi <= 2.0 ||
6+
pi != 22.0/7.0 || pi >= 10.0 || pi > 1.0) {
7+
log("yes");
8+
}
9+
}

0 commit comments

Comments
 (0)