Skip to content

Commit 830bfab

Browse files
brsongraydon
authored andcommitted
---
yaml --- r: 1626 b: refs/heads/master c: 8438eca h: refs/heads/master v: v3
1 parent 4e33a6c commit 830bfab

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 242ecd0e96e568d80e20ad847a9a7766213cffee
2+
refs/heads/master: 8438eca45cf20b4949450aaf2a3bd5212877d337

trunk/src/Makefile

+12-3
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,8 @@ TEST_XFAILS_RUSTC := $(addprefix test/run-pass/, \
574574
while-type-error.rs \
575575
wrong-ret-type.rs \
576576
), \
577-
$(wildcard test/*fail/*.rs test/*fail/*.rc))
577+
$(wildcard test/*fail/*.rs test/*fail/*.rc)) \
578+
test/bench/shootout/fasta.rs
578579

579580

580581
ifdef MINGW_CROSS
@@ -586,8 +587,10 @@ TEST_XFAILS_BOOT += test/run-pass/native-mod.rc
586587
TEST_XFAILS_RUSTC += test/run-pass/native-mod.rc
587588
endif
588589

589-
RPASS_RC := $(wildcard test/run-pass/*.rc)
590-
RPASS_RS := $(wildcard test/run-pass/*.rs)
590+
BENCH_RC := $(wildcard test/bench/shootout/*rc)
591+
BENCH_RS := $(wildcard test/bench/shootout/*rs)
592+
RPASS_RC := $(wildcard test/run-pass/*.rc) $(BENCH_RC)
593+
RPASS_RS := $(wildcard test/run-pass/*.rs) $(BENCH_RS)
591594
RFAIL_RC := $(wildcard test/run-fail/*.rc)
592595
RFAIL_RS := $(wildcard test/run-fail/*.rs)
593596
CFAIL_RC := $(wildcard test/compile-fail/*.rc)
@@ -731,6 +734,12 @@ test/run-pass/%.out.tmp: test/run-pass/%$(CFG_EXE_SUFFIX) $(CFG_RUNTIME)
731734
@$(call CFG_ECHO, run: $<)
732735
$(CFG_QUIET)$(call CFG_RUN_TARG, $<) > $@
733736

737+
test/bench/shootout/%.out.tmp: test/bench/shootout/%$(CFG_EXE_SUFFIX) \
738+
$(CFG_RUNTIME)
739+
$(CFG_QUIET)rm -f $<.tmp
740+
@$(call CFG_ECHO, run: $<)
741+
$(CFG_QUIET)$(call CFG_RUN_TARG, $<) > $@
742+
734743
test/run-fail/%.out.tmp: test/run-fail/%$(CFG_EXE_SUFFIX) \
735744
$(CFG_RUNTIME)
736745
$(CFG_QUIET)rm -f $<.tmp

trunk/src/test/bench/shootout/binary-trees.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
tag tree {
2-
nil();
2+
nil;
33
node(@tree, @tree, int);
44
}
55

6-
fn item_check(&tree t) -> int {
7-
alt (t) {
8-
case (nil()) {
6+
fn item_check(@tree t) -> int {
7+
alt (*t) {
8+
case (nil) {
99
ret 0;
1010
}
11-
case (node(@tree left, @tree right, int item)) {
11+
case (node(?left, ?right, ?item)) {
1212
ret item + item_check(left) - item_check(right);
1313
}
1414
}

0 commit comments

Comments
 (0)