Skip to content

Commit 05294fc

Browse files
committed
---
yaml --- r: 5430 b: refs/heads/master c: 956bc69 h: refs/heads/master v: v3
1 parent a71bb33 commit 05294fc

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 80778f642fb7f4084c6ad6efd7e9605f381e881a
2+
refs/heads/master: 956bc69330cef83977c6f0031fc53efc44542560
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// error-pattern:fail
2+
3+
fn f() -> [int] { fail; }
4+
5+
// Voodoo. In unwind-alt we had to do this to trigger the bug. Might
6+
// have been to do with memory allocation patterns.
7+
fn prime() {
8+
@0;
9+
}
10+
11+
fn partial() {
12+
let x = @f();
13+
}
14+
15+
fn main() {
16+
prime();
17+
partial();
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// error-pattern:fail
2+
3+
fn f() -> [int] { fail; }
4+
5+
// Voodoo. In unwind-alt we had to do this to trigger the bug. Might
6+
// have been to do with memory allocation patterns.
7+
fn prime() {
8+
@0;
9+
}
10+
11+
fn partial() {
12+
let x = [[0], f(), [0]];
13+
}
14+
15+
fn main() {
16+
prime();
17+
partial();
18+
}

0 commit comments

Comments
 (0)