blob: 4de308dafe4a7acf7672f7f5229ca0f3df5d9c1c [file]
//! Check that `#[reexport_test_harness_main]` correctly reexports the test harness entry point
//! and allows it to be called from within the code.
//@ run-pass
//@ compile-flags:--test
#![feature(custom_test_frameworks)]
#![reexport_test_harness_main = "test_main"]
#[cfg(test)]
fn _unused() {
// should resolve to the entry point function the --test harness
// creates.
test_main();
}