summary refs log tree commit diff
path: root/src/test/run-pass/for-loop-while/for-loop-no-std.rs
blob: 877429f5d39002409f1b78c8929a49ba4aa581ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass
#![allow(unused_imports)]
#![feature(lang_items, start, alloc)]
#![no_std]

extern crate std as other;

#[macro_use] extern crate alloc;

#[start]
fn start(_argc: isize, _argv: *const *const u8) -> isize {
    for _ in [1,2,3].iter() { }
    0
}