Testcase (XFAILed) for fn item given as lval.
This commit is contained in:
parent
329a65530f
commit
5b5b334c24
@ -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 \
|
||||
|
8
src/test/run-pass/fn-lval.rs
Normal file
8
src/test/run-pass/fn-lval.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// -*- rust -*-
|
||||
|
||||
fn foo((fn(int) -> int) f) {}
|
||||
fn id(int x) -> int { ret x; }
|
||||
|
||||
fn main() {
|
||||
foo(id);
|
||||
}
|
Loading…
Reference in New Issue
Block a user