work around 15189 in test cases
This commit is contained in:
parent
eead9e6190
commit
d8d48e4aae
10 changed files with 38 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty FIXME #15189
|
||||||
// ignore-win32 FIXME #13259
|
// ignore-win32 FIXME #13259
|
||||||
extern crate native;
|
extern crate native;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty FIXME #15189
|
||||||
|
|
||||||
#[deriving(PartialEq, Eq, PartialOrd, Ord)]
|
#[deriving(PartialEq, Eq, PartialOrd, Ord)]
|
||||||
enum E<T> {
|
enum E<T> {
|
||||||
E0,
|
E0,
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty FIXME #15189
|
||||||
|
|
||||||
#![feature(struct_variant)]
|
#![feature(struct_variant)]
|
||||||
|
|
||||||
#[deriving(PartialEq, Eq, PartialOrd, Ord)]
|
#[deriving(PartialEq, Eq, PartialOrd, Ord)]
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty FIXME #15189
|
||||||
|
|
||||||
#[deriving(PartialEq, Eq, PartialOrd, Ord)]
|
#[deriving(PartialEq, Eq, PartialOrd, Ord)]
|
||||||
struct S<T> {
|
struct S<T> {
|
||||||
x: T,
|
x: T,
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty FIXME #15189
|
||||||
|
|
||||||
#[deriving(PartialEq, Eq, PartialOrd, Ord)]
|
#[deriving(PartialEq, Eq, PartialOrd, Ord)]
|
||||||
struct TS<T>(T,T);
|
struct TS<T>(T,T);
|
||||||
|
|
||||||
|
|
21
src/test/run-pass/issue-15189.rs
Normal file
21
src/test/run-pass/issue-15189.rs
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
// file at the top-level directory of this distribution and at
|
||||||
|
// http://rust-lang.org/COPYRIGHT.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
// option. This file may not be copied, modified, or distributed
|
||||||
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty
|
||||||
|
|
||||||
|
#![feature(macro_rules)]
|
||||||
|
|
||||||
|
macro_rules! third(($e:expr)=>({let x = 2; *$e.get(x)}))
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let x = vec!(10u,11u,12u,13u);
|
||||||
|
let t = third!(x);
|
||||||
|
assert_eq!(t,12u);
|
||||||
|
}
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty FIXME #15189
|
||||||
|
|
||||||
extern crate debug;
|
extern crate debug;
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty FIXME #15189
|
||||||
|
|
||||||
extern crate debug;
|
extern crate debug;
|
||||||
|
|
||||||
use std::task;
|
use std::task;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty FIXME #15189
|
||||||
|
|
||||||
use std::iter::Unfold;
|
use std::iter::Unfold;
|
||||||
|
|
||||||
// Unfold had a bug with 'a that mean it didn't work
|
// Unfold had a bug with 'a that mean it didn't work
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty FIXME #15189
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
let yen: char = '¥'; // 0xa5
|
let yen: char = '¥'; // 0xa5
|
||||||
let c_cedilla: char = 'ç'; // 0xe7
|
let c_cedilla: char = 'ç'; // 0xe7
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue