diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-02-03 11:15:05 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-02-23 11:28:06 +1100 |
| commit | baec3076dbc612433210b7ab3366736e445f8c30 (patch) | |
| tree | 3956e55e2495c190bbfca7549869cfebdb78bab1 /tests/codegen | |
| parent | 1e432dd9f4b165ac36db19082176ddf6a828d0ca (diff) | |
| download | rust-baec3076dbc612433210b7ab3366736e445f8c30.tar.gz rust-baec3076dbc612433210b7ab3366736e445f8c30.zip | |
Allow tests to specify a `//@ filecheck-flags:` header
Any flags specified here will be passed to LLVM's `filecheck` tool, in tests that use that tool.
Diffstat (limited to 'tests/codegen')
| -rw-r--r-- | tests/codegen/meta-filecheck/filecheck-flags.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/codegen/meta-filecheck/filecheck-flags.rs b/tests/codegen/meta-filecheck/filecheck-flags.rs new file mode 100644 index 00000000000..8e451cf4fdc --- /dev/null +++ b/tests/codegen/meta-filecheck/filecheck-flags.rs @@ -0,0 +1,8 @@ +// Arguments provided via `filecheck-flags` should be passed to `filecheck`. + +//@ revisions: good bad +//@ [good] filecheck-flags: --check-prefix=CUSTOM +//@ [bad] should-fail + +// CUSTOM: main +fn main() {} |
