test: Un-xfail some compile-fail tests

Changed a few error patterns to match rustc's errors where it seemed
reasonable.
This commit is contained in:
Brian Anderson
2011-05-23 22:49:13 -04:00
parent c22100ab2d
commit e5e2811bc6
8 changed files with 2 additions and 23 deletions
-3
View File
@@ -1,6 +1,3 @@
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: expecting
fn main() {
-2
View File
@@ -1,5 +1,3 @@
// xfail-stage0
// xfail-stage1
// error-pattern: attempted dynamic environment-capture
fn foo() {
let int x;
@@ -1,5 +1,3 @@
// xfail-stage0
// xfail-stage1
// error-pattern: attempted dynamic environment-capture
fn foo(int x) {
fn bar() {
@@ -1,5 +1,3 @@
// xfail-stage0
// xfail-stage1
// error-pattern: attempted dynamic environment-capture
obj foo(int x) {
fn mth() {
-3
View File
@@ -1,6 +1,3 @@
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: mismatched types
fn main() {
-3
View File
@@ -1,6 +1,3 @@
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: mismatched types
fn main() {
+1 -4
View File
@@ -1,7 +1,4 @@
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: unresolved identifier
// error-pattern: unresolved name
obj oT() {
fn get() -> int {
ret 3;
+1 -4
View File
@@ -1,9 +1,6 @@
// xfail-stage0
// xfail-stage1
// xfail-stage2
// -*- rust -*-
// error-pattern: token
// error-pattern: unterminated block comment
/*
* This is an un-balanced /* multi-line comment.