Testcase (XFAILed) for fn item given as lval.

This commit is contained in:
Roy Frostig 2010-06-28 21:18:09 -07:00
parent 329a65530f
commit 5b5b334c24
2 changed files with 10 additions and 0 deletions

View File

@ -319,6 +319,7 @@ TEST_XFAILS_X86 := test/run-pass/mlist-cycle.rs \
test/run-pass/obj-as.rs \
test/run-pass/rec-auto.rs \
test/run-pass/vec-slice.rs \
test/run-pass/fn-lval.rs \
test/run-pass/generic-fn-infer.rs \
test/run-pass/generic-recursive-tag.rs \
test/run-pass/mutable-alias-vec.rs \
@ -355,6 +356,7 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \
else-if.rs \
export-non-interference.rs \
exterior.rs \
fn-lval.rs \
foreach-put-structured.rs \
foreach-simple-outer-slot.rs \
foreach-simple.rs \

View File

@ -0,0 +1,8 @@
// -*- rust -*-
fn foo((fn(int) -> int) f) {}
fn id(int x) -> int { ret x; }
fn main() {
foo(id);
}