rust/src/test/run-pass/test-vs-cfg-test.rs

9 lines
132 B
Rust
Raw Normal View History

// compile-flags: --cfg test
// Make sure `--cfg test` does not inject test harness
#[test]
fn test() { panic!(); }
fn main() {}