aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/while_function.rs
blob: 014db902769583016f9950f04bb8c9a0a816597c (plain)
1
2
3
4
5
6
7
8
9
10
fn foo() {}
fn bar() -> i32 { return 10; }

fn main() {
	let mut i = 1;
	while i < bar() {
		foo();
		i += 1;
	}
}