2024-02-16 20:02:50 +00:00
|
|
|
//@ error-pattern: `main` function not found
|
2024-04-07 00:33:37 +02:00
|
|
|
//@ compile-flags: --cfg foo --check-cfg=cfg(foo,bar)
|
2015-02-09 09:29:21 -08:00
|
|
|
|
|
|
|
// main is conditionally compiled, but the conditional compilation
|
|
|
|
// is conditional too!
|
|
|
|
|
|
|
|
#[cfg_attr(foo, cfg(bar))]
|
|
|
|
fn main() { }
|