diff options
| author | Roy Frostig <[email protected]> | 2010-06-28 21:18:09 -0700 |
|---|---|---|
| committer | Roy Frostig <[email protected]> | 2010-06-28 21:18:09 -0700 |
| commit | 5b5b334c245040726e8fc95b8c448d76aad2ada6 (patch) | |
| tree | a727f4feca8c13f31b272d6558a2b99f06492c95 | |
| parent | Canonicalize hashtables after running them through htab_map. Closes #77. (diff) | |
| download | rust-5b5b334c245040726e8fc95b8c448d76aad2ada6.tar.xz rust-5b5b334c245040726e8fc95b8c448d76aad2ada6.zip | |
Testcase (XFAILed) for fn item given as lval.
| -rw-r--r-- | src/Makefile | 2 | ||||
| -rw-r--r-- | src/test/run-pass/fn-lval.rs | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index f2e0a2c4..188a4139 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 \ diff --git a/src/test/run-pass/fn-lval.rs b/src/test/run-pass/fn-lval.rs new file mode 100644 index 00000000..de0d3f48 --- /dev/null +++ b/src/test/run-pass/fn-lval.rs @@ -0,0 +1,8 @@ +// -*- rust -*- + +fn foo((fn(int) -> int) f) {} +fn id(int x) -> int { ret x; } + +fn main() { + foo(id); +} |