Add xfail-pretty directives to tests that don't pretty-print correctly

Issue #789
This commit is contained in:
Brian Anderson 2011-08-01 11:41:19 -07:00
parent 166c73546a
commit 0a6e3362c6
16 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,4 @@
// xfail-pretty
// Issue #53
fn main() {

View File

@ -1,3 +1,4 @@
// xfail-pretty
// no-reformat
/*

View File

@ -1,4 +1,5 @@
// xfail-stage0
// xfail-pretty
// -*- rust -*-
tag list { cons(int, @list); nil; }

View File

@ -1,4 +1,4 @@
// xfail-pretty
// -*- rust -*-

View File

@ -1,3 +1,4 @@
// xfail-pretty
/**
A somewhat reduced test case to expose some Valgrind issues.

View File

@ -1,4 +1,5 @@
// xfail-stage0
// xfail-pretty
pred even(x: uint) -> bool {
if x < 2u {
ret false;

View File

@ -1,4 +1,5 @@
// xfail-stage0
// xfail-pretty
fn foo() { if (ret) { } }
fn main() { foo(); }

View File

@ -1,4 +1,5 @@
// xfail-stage0
// xfail-pretty
use std;
import std::ivec;

View File

@ -1,4 +1,5 @@
// xfail-stage0
// xfail-pretty
// These are attributes of the implicit crate. Really this just needs to parse
// for completeness since .rs files linked from .rc files support this

View File

@ -1,3 +1,5 @@
// xfail-pretty
fn main() {
#macro([#zip_or_unzip[[x, ...], [y, ...]], [[x, y], ...]],
[#zip_or_unzip[[xx, yy], ...], [[xx, ...], [yy, ...]]]);

View File

@ -1,4 +1,5 @@
// xfail-stage0
// xfail-pretty
// Tests that trans_path checks whether a
// pattern-bound var is an upvar (when translating
// the for-each body)

View File

@ -1,3 +1,5 @@
// xfail-pretty
fn swap[@T](v: &vec[mutable T], i: int, j: int) { v.(i) <-> v.(j); }
fn main() {

View File

@ -1,3 +1,4 @@
// xfail-pretty
use std;
import std::str;

View File

@ -1,4 +1,5 @@
// xfail-stage0
// xfail-pretty
use std;

View File

@ -1,3 +1,5 @@
// xfail-pretty
pred p(i: int) -> bool { true }
fn f(i: int) : p(i) -> int { i }

View File

@ -1,4 +1,4 @@
// xfail-pretty
tag t { a; b(str); }