Skip to content

Commit 4445942

Browse files
committed
add test
1 parent 399d025 commit 4445942

File tree

8 files changed

+20
-0
lines changed

8 files changed

+20
-0
lines changed

tests/source/issue-3933/imp-a.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mod utils;
2+
pub
3+
struct A;

tests/source/issue-3933/imp-b.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub struct B;

tests/source/issue-3933/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[cfg_attr(windows, path = "imp-a.rs" )]
2+
#[cfg_attr(not(windows), path = "imp-b.rs")]
3+
mod imp;
4+
pub use imp::A;

tests/source/issue-3933/utils.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub fn fuga() {
2+
3+
4+
}

tests/target/issue-3933/imp-a.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mod utils;
2+
pub struct A;

tests/target/issue-3933/imp-b.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub struct B;

tests/target/issue-3933/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[cfg_attr(windows, path = "imp-a.rs")]
2+
#[cfg_attr(not(windows), path = "imp-b.rs")]
3+
mod imp;
4+
pub use imp::A;

tests/target/issue-3933/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub fn fuga() {}

0 commit comments

Comments
 (0)