Skip to content

Commit 0cb4b0d

Browse files
committed
Add crash tests.
1 parent 8231065 commit 0cb4b0d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/crashes/139872.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//@ known-bug: #139872
2+
3+
enum E {
4+
V16(u16),
5+
V32(u32),
6+
}
7+
8+
static C: (E, u16, str) = (E::V16(0xDEAD), 0x600D, 0xBAD);
9+
10+
pub fn main() {
11+
let (_, n, _) = C;
12+
}

tests/crashes/140332.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//@ known-bug: #140332
2+
3+
static mut S: [i8] = ["Some thing"; 1];
4+
5+
fn main() {
6+
assert_eq!(S, [0; 1]);
7+
}

0 commit comments

Comments
 (0)