1
Fork 0

compiletest: add enable-by-default check-cfg

This commit is contained in:
Urgau 2024-04-07 00:33:37 +02:00
parent 517374150c
commit d4e26fbb53
42 changed files with 114 additions and 63 deletions

View file

@ -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() {}