Add two failing examples
This commit is contained in:
parent
7027ee3645
commit
f7500b886a
12
examples/list_hard.reid
Normal file
12
examples/list_hard.reid
Normal file
@ -0,0 +1,12 @@
|
||||
fn main() {
|
||||
let mut a = 5;
|
||||
for i in 0..1000 {
|
||||
for j in 0..1000 {
|
||||
for k in 0..1000 {
|
||||
inner(&mut a);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn inner(a: &mut i32) {}
|
8
examples/ptr_hard.reid
Normal file
8
examples/ptr_hard.reid
Normal file
@ -0,0 +1,8 @@
|
||||
fn main() {
|
||||
let mut a = 5;
|
||||
inner(&mut a);
|
||||
}
|
||||
|
||||
fn inner(a: &mut i32) {
|
||||
*a = *a + 1;
|
||||
}
|
@ -124,3 +124,11 @@ fn struct_compiles_well() {
|
||||
fn loops_compiles_well() {
|
||||
test(include_str!("../../examples/loops.reid"), "test", 10);
|
||||
}
|
||||
#[test]
|
||||
fn ptr_hard_compiles_well() {
|
||||
test(include_str!("../../examples/ptr_hard.reid"), "test", 0);
|
||||
}
|
||||
#[test]
|
||||
fn list_hard_compiles_well() {
|
||||
test(include_str!("../../examples/list_hard.reid"), "test", 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user