mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 23:06:23 +00:00
Add xfail-pretty directives to tests that don't pretty-print correctly
Issue #789
This commit is contained in:
parent
166c73546a
commit
0a6e3362c6
@ -1,3 +1,4 @@
|
||||
// xfail-pretty
|
||||
// Issue #53
|
||||
|
||||
fn main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
// xfail-pretty
|
||||
// no-reformat
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,5 @@
|
||||
// xfail-stage0
|
||||
// xfail-pretty
|
||||
// -*- rust -*-
|
||||
|
||||
tag list { cons(int, @list); nil; }
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
// xfail-pretty
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
@ -1,3 +1,4 @@
|
||||
// xfail-pretty
|
||||
/**
|
||||
A somewhat reduced test case to expose some Valgrind issues.
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
// xfail-stage0
|
||||
// xfail-pretty
|
||||
pred even(x: uint) -> bool {
|
||||
if x < 2u {
|
||||
ret false;
|
||||
|
@ -1,4 +1,5 @@
|
||||
// xfail-stage0
|
||||
// xfail-pretty
|
||||
fn foo() { if (ret) { } }
|
||||
|
||||
fn main() { foo(); }
|
@ -1,4 +1,5 @@
|
||||
// xfail-stage0
|
||||
// xfail-pretty
|
||||
|
||||
use std;
|
||||
import std::ivec;
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,5 @@
|
||||
// xfail-pretty
|
||||
|
||||
fn main() {
|
||||
#macro([#zip_or_unzip[[x, ...], [y, ...]], [[x, y], ...]],
|
||||
[#zip_or_unzip[[xx, yy], ...], [[xx, ...], [yy, ...]]]);
|
||||
|
@ -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)
|
||||
|
@ -1,3 +1,5 @@
|
||||
// xfail-pretty
|
||||
|
||||
fn swap[@T](v: &vec[mutable T], i: int, j: int) { v.(i) <-> v.(j); }
|
||||
|
||||
fn main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
// xfail-pretty
|
||||
|
||||
use std;
|
||||
import std::str;
|
||||
|
@ -1,4 +1,5 @@
|
||||
// xfail-stage0
|
||||
// xfail-pretty
|
||||
|
||||
use std;
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
// xfail-pretty
|
||||
|
||||
pred p(i: int) -> bool { true }
|
||||
|
||||
fn f(i: int) : p(i) -> int { i }
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
// xfail-pretty
|
||||
|
||||
tag t { a; b(str); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user