File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 55Header commands are special comments that tell compiletest how to build and
66interpret a test.
77They must appear before the Rust source in the test.
8- They may also appear in legacy Makefiles for
8+ They may also appear in ` rmake.rs ` or legacy Makefiles for
99[ run-make tests] ( compiletest.md#run-make-tests ) .
1010
1111They are normally put after the short comment that explains the point of this test.
@@ -27,6 +27,10 @@ fn main() {
2727Header commands can be standalone (like ` //@ run-pass ` ) or take a value (like
2828` //@ compile-flags: -C overflow-checks=off ` ).
2929
30+ Header commands are written with one header per line: you cannot write multiple
31+ headers on the same line. For example, if you write ` //@ only-x86 only-windows `
32+ then ` only-windows ` is interpreted as a comment, not a separate directive.
33+
3034## Header commands
3135
3236The following is a list of header commands.
You can’t perform that action at this time.
0 commit comments