about summary refs log tree commit diff
path: root/tests/ui
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-04-07 00:51:27 +0200
committerGitHub <noreply@github.com>2024-04-07 00:51:27 +0200
commit96dbde796ced67ac17d1dd15851cd8737bf6589a (patch)
treeebf23d09993158f5984fd3af4ec8b9f114ca3887 /tests/ui
parent7524f5e1b96b3ab5379e51a61eb2e70a587b4c7a (diff)
parenta9c0ffa35b7f93d620c0d55ced552ab1ff6cbd72 (diff)
downloadrust-96dbde796ced67ac17d1dd15851cd8737bf6589a.tar.gz
rust-96dbde796ced67ac17d1dd15851cd8737bf6589a.zip
Rollup merge of #123563 - Oneirical:version, r=jieyouxu
Rewrite `version` test run-make as an UI test

Claiming the simple `version` test from #121876.

Reasoning: As discussed in #123297, 10 years ago, some changes to CLI flags warranted the creation of the `version` test. Since it's not actually executing the compiled binary, it has no purpose being a `run-make` test and should instead be an UI test.

This is the exact same change as it was shown on my closed PR #123297. Changes were ready, but I did a major Git mishap while trying to fix a tidy error and messed up my branch. The details of this error are explained [here](https://github.com/rust-lang/rust/pull/123297#issuecomment-2041152379).
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/version/version-info-flags.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/version/version-info-flags.rs b/tests/ui/version/version-info-flags.rs
new file mode 100644
index 00000000000..612113452c4
--- /dev/null
+++ b/tests/ui/version/version-info-flags.rs
@@ -0,0 +1,9 @@
+// Check that rustc accepts various version info flags.
+//@ dont-check-compiler-stdout
+//@ revisions: version verbose-version long-verbose-version
+//@ check-pass
+//@[version] compile-flags: -V
+//@[verbose-version] compile-flags: -vV
+//@[long-verbose-verison] compile-flags: --version --verbose
+
+fn main() {}