Skip to content

Commit 3c1160d

Browse files
committed
Add cfg_if! test case for issue 5413
1 parent df9a3a0 commit 3c1160d

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

tests/source/issue_5413.rs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
cfg_if! {
2+
if
3+
}
4+
5+
cfg_if! {
6+
if #[a] { } else if
7+
}
8+
9+
cfg_if! {
10+
if #[a] { if }
11+
}
12+
13+
fn main(
14+
) {
15+
println!("hello world!");
16+
}

tests/target/issue_5413.rs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
cfg_if! {
2+
if
3+
}
4+
5+
cfg_if! {
6+
if #[a] { } else if
7+
}
8+
9+
cfg_if! {
10+
if #[a] { if }
11+
}
12+
13+
fn main() {
14+
println!("hello world!");
15+
}

0 commit comments

Comments
 (0)