Closed
Description
Consider the code below. When compiled with rustc --test thetest.rs
the test suite's code is not run, and the start function is run instead.
use std::rt;
// Compiled with --test it prints Oops!
#[start]
fn start(argc: int, argv: **u8, crate_map: *u8) -> int {
do rt::start_on_main_thread(argc, argv, crate_map) {
println("Oops!")
}
}