aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-06-24 16:57:00 -0700
committerGraydon Hoare <[email protected]>2010-06-24 16:57:00 -0700
commitbcf29b882acdf477be412fdb401b0fc2a6c819aa (patch)
treeb0cf49c1938f6178b378ed0a9796cc50eb80884b
parentIgnore TAGS. (diff)
downloadrust-bcf29b882acdf477be412fdb401b0fc2a6c819aa.tar.xz
rust-bcf29b882acdf477be412fdb401b0fc2a6c819aa.zip
A couple new tests for broken parts of the typechecker, XFAILed.
-rw-r--r--src/Makefile4
-rw-r--r--src/test/compile-fail/bad-recv.rs5
-rw-r--r--src/test/compile-fail/bad-send.rs5
3 files changed, 14 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 2244c350..2c53a30b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -324,6 +324,8 @@ TEST_XFAILS_X86 := test/run-pass/mlist-cycle.rs \
test/run-pass/bind-obj-ctor.rs \
test/run-pass/task-comm.rs \
test/compile-fail/rec-missing-fields.rs \
+ test/compile-fail/bad-send.rs \
+ test/compile-fail/bad-recv.rs \
test/compile-fail/infinite-tag-type-recursion.rs \
test/compile-fail/infinite-vec-type-recursion.rs
@@ -440,6 +442,8 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \
) \
$(addprefix test/compile-fail/, \
rec-missing-fields.rs \
+ bad-send.rs \
+ bad-recv.rs \
infinite-tag-type-recursion.rs \
infinite-vec-type-recursion.rs \
)
diff --git a/src/test/compile-fail/bad-recv.rs b/src/test/compile-fail/bad-recv.rs
new file mode 100644
index 00000000..cccb735d
--- /dev/null
+++ b/src/test/compile-fail/bad-recv.rs
@@ -0,0 +1,5 @@
+// error-pattern: mismatched types
+
+fn main() {
+ 10 <- 10;
+} \ No newline at end of file
diff --git a/src/test/compile-fail/bad-send.rs b/src/test/compile-fail/bad-send.rs
new file mode 100644
index 00000000..e699b4e3
--- /dev/null
+++ b/src/test/compile-fail/bad-send.rs
@@ -0,0 +1,5 @@
+// error-pattern: mismatched types
+
+fn main() {
+ 10 <| 10;
+} \ No newline at end of file