Skip to content

Commit 73c026b

Browse files
committed
Add test case
1 parent a48367e commit 73c026b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn zero() {
2+
unsafe { 0 };
3+
}

tests/ui/crashes/ice-7868.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#![warn(clippy::undocumented_unsafe_blocks)]
2+
3+
#[path = "auxiliary/ice-7868-aux.rs"]
4+
mod zero;
5+
6+
fn main() {}

0 commit comments

Comments
 (0)