about summary refs log tree commit diff
path: root/tests/rustdoc-ui
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-04-07 00:33:37 +0200
committerUrgau <urgau@numericable.fr>2024-05-04 11:30:38 +0200
commitd4e26fbb5301b465a037c4d2ff54024ebd7f73d8 (patch)
treed88675775f0531d394efd16a5906d9440b30875f /tests/rustdoc-ui
parent517374150cfb48e907aec059f3639eba3a9c1e1c (diff)
downloadrust-d4e26fbb5301b465a037c4d2ff54024ebd7f73d8.tar.gz
rust-d4e26fbb5301b465a037c4d2ff54024ebd7f73d8.zip
compiletest: add enable-by-default check-cfg
Diffstat (limited to 'tests/rustdoc-ui')
-rw-r--r--tests/rustdoc-ui/argfile/commandline-argfile.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rustdoc-ui/argfile/commandline-argfile.rs b/tests/rustdoc-ui/argfile/commandline-argfile.rs
index b0b314f53ce..d5a1cd0a5ed 100644
--- a/tests/rustdoc-ui/argfile/commandline-argfile.rs
+++ b/tests/rustdoc-ui/argfile/commandline-argfile.rs
@@ -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() {}