compiletest: add enable-by-default check-cfg
This commit is contained in:
parent
517374150c
commit
d4e26fbb53
42 changed files with 114 additions and 63 deletions
|
@ -1,7 +1,8 @@
|
|||
// Check to see if we can get parameters from an @argsfile file
|
||||
//
|
||||
//@ check-pass
|
||||
//@ compile-flags: --cfg cmdline_set @{{src-base}}/argfile/commandline-argfile.args
|
||||
//@ compile-flags: --cfg cmdline_set --check-cfg=cfg(cmdline_set,unbroken)
|
||||
//@ compile-flags: @{{src-base}}/argfile/commandline-argfile.args
|
||||
|
||||
#[cfg(not(cmdline_set))]
|
||||
compile_error!("cmdline_set not set");
|
||||
|
@ -9,5 +10,4 @@ compile_error!("cmdline_set not set");
|
|||
#[cfg(not(unbroken))]
|
||||
compile_error!("unbroken not set");
|
||||
|
||||
fn main() {
|
||||
}
|
||||
fn main() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue