diff --git a/src/test/auxiliary/issue-4545.rs b/src/test/auxiliary/issue-4545.rs new file mode 100644 index 0000000000000..29feeaa7d9285 --- /dev/null +++ b/src/test/auxiliary/issue-4545.rs @@ -0,0 +1,12 @@ +// Copyright 2013 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +pub struct S(Option); +pub fn mk() -> S { S(None) } diff --git a/src/test/auxiliary/issue-8044.rs b/src/test/auxiliary/issue-8044.rs new file mode 100644 index 0000000000000..7d9a4b603844f --- /dev/null +++ b/src/test/auxiliary/issue-8044.rs @@ -0,0 +1,27 @@ +// Copyright 2013 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#[feature(struct_variant)]; + +pub struct BTree { + node: TreeItem, +} + +pub enum TreeItem { + TreeLeaf { value: V }, +} + +pub fn leaf(value: V) -> TreeItem { + TreeLeaf { value: value } +} + +fn main() { + BTree:: { node: leaf(1) }; +} diff --git a/src/test/run-pass/issue-4545.rs b/src/test/run-pass/issue-4545.rs new file mode 100644 index 0000000000000..834e09859f64d --- /dev/null +++ b/src/test/run-pass/issue-4545.rs @@ -0,0 +1,15 @@ +// Copyright 2013 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// xfail-fast windows doesn't like aux-build +// aux-build:issue-4545.rs + +extern mod somelib(name = "issue-4545"); +fn main() { somelib::mk::(); } diff --git a/src/test/run-pass/issue-5791.rs b/src/test/run-pass/issue-5791.rs new file mode 100644 index 0000000000000..251ae2f319494 --- /dev/null +++ b/src/test/run-pass/issue-5791.rs @@ -0,0 +1,20 @@ +// Copyright 2013 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +use std::libc; + +extern { + #[link_name = "malloc"] + fn malloc1(len: libc::c_int) -> *libc::c_void; + #[link_name = "malloc"] + fn malloc2(len: libc::c_int, foo: libc::c_int) -> *libc::c_void; +} + +pub fn main () {} diff --git a/src/test/run-pass/issue-6470.rs b/src/test/run-pass/issue-6470.rs index 73d0e181da07f..a16108452bc9a 100644 --- a/src/test/run-pass/issue-6470.rs +++ b/src/test/run-pass/issue-6470.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// xfail-test - pub mod Bar { pub struct Foo { v: int, @@ -21,5 +19,4 @@ pub mod Bar { } } -fn main() { } - +pub fn main() { } diff --git a/src/test/run-pass/issue-8044.rs b/src/test/run-pass/issue-8044.rs new file mode 100644 index 0000000000000..d8e0085ed8726 --- /dev/null +++ b/src/test/run-pass/issue-8044.rs @@ -0,0 +1,19 @@ +// Copyright 2013 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// xfail-fast windows doesn't like aux-build +// aux-build:issue-8044.rs + +extern mod minimal(name= "issue-8044"); +use minimal::{BTree, leaf}; + +fn main() { + BTree:: { node: leaf(1) }; +}