Skip to content

Commit 82c1461

Browse files
committed
---
yaml --- r: 3412 b: refs/heads/master c: 926049e h: refs/heads/master v: v3
1 parent 0af68bc commit 82c1461

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-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: 1ca0db5421c0737088112d55475d37bd7f3d0bb4
2+
refs/heads/master: 926049edddb6a990f22658205a2f3d467d0e4475
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// xfail-stage0
2+
// error-pattern: Unsatisfied precondition constraint (for example, even(y
3+
4+
fn print_even(int y) : even(y) {
5+
log y;
6+
}
7+
8+
pred even(int y) -> bool {
9+
true
10+
}
11+
12+
fn main() {
13+
14+
let int y = 42;
15+
check even(y);
16+
do {
17+
print_even(y);
18+
do {
19+
do {
20+
do {
21+
y += 1;
22+
} while (true);
23+
} while (true);
24+
} while (true);
25+
} while (true);
26+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// xfail-stage0
2+
// error-pattern: Unsatisfied precondition constraint (for example, even(y
3+
4+
fn print_even(int y) : even(y) {
5+
log y;
6+
}
7+
8+
pred even(int y) -> bool {
9+
true
10+
}
11+
12+
fn main() {
13+
14+
let int y = 42;
15+
let int x = 1;
16+
check even(y);
17+
while (true) {
18+
print_even(y);
19+
while (true) {
20+
while (true) {
21+
while (true) {
22+
y += x;
23+
}
24+
}
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)