Skip to content

Commit c461fc8

Browse files
committed
test: Add xfailed test for #2196
1 parent 2a95723 commit c461fc8

File tree

6 files changed

+30
-0
lines changed

6 files changed

+30
-0
lines changed

src/test/auxiliary/issue-2196-a.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#[link(name = "issue2196a", vers = "0.1")];
2+
#[crate_type = "lib"];
3+

src/test/auxiliary/issue-2196-b.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#[link(name = "issue2196b", vers = "0.1")];
2+
#[crate_type = "lib"];
3+
4+
use a(name = "issue2196a");
5+
6+
type d = str;
7+
impl d for d { }
8+

src/test/auxiliary/issue-2196-c.rc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#[link(name = "issue2196c", vers = "0.1")];
2+
#[crate_type = "lib"];
3+
4+
use b(name = "issue2196b");
5+
#[path = "issue-2196-d.rs"]
6+
mod d;

src/test/auxiliary/issue-2196-c.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import b::d;
2+
3+
type t = uint;
4+

src/test/auxiliary/issue-2196-d.rs

Whitespace-only changes.

src/test/run-pass/issue-2196.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// xfail-test
2+
// aux-build:issue-2196-a.rs
3+
// aux-build:issue-2196-b.rs
4+
// aux-build:issue-2196-c.rc
5+
6+
use c(name = "issue2196c");
7+
import c::t;
8+
9+
fn main() { }

0 commit comments

Comments
 (0)