about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-12-18 20:11:35 +0800
committer许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-12-19 20:36:51 +0800
commitaaca9fa482739cc097a7e77bf6a5ee87e8aa6254 (patch)
treea400204ec641a8477d2d37f929aea0d3699b74e2 /tests
parentbab18a542d95b5c76620d0a0d383d7ab683cc1b7 (diff)
downloadrust-aaca9fa482739cc097a7e77bf6a5ee87e8aa6254.tar.gz
rust-aaca9fa482739cc097a7e77bf6a5ee87e8aa6254.zip
compiletest: don't register `MSVC`/`NONMSVC` FileCheck prefixes
This was fragile as it was based on host target passed to compiletest,
but the user could cross-compile and run test for a different target
(e.g. cross from linux to msvc, but msvc won't be set on the target).
Furthermore, it was also very surprising as normally revision names
(other than `CHECK`) was accepted as FileCheck prefixes.
Diffstat (limited to 'tests')
-rw-r--r--tests/codegen/meta-filecheck/msvc-prefix-good.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/codegen/meta-filecheck/msvc-prefix-good.rs b/tests/codegen/meta-filecheck/msvc-prefix-good.rs
deleted file mode 100644
index 580d20d5438..00000000000
--- a/tests/codegen/meta-filecheck/msvc-prefix-good.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-// One of MSVC or NONMSVC should always be defined, so this test should pass.
-
-// (one of these should always be present)
-
-// MSVC: main
-// NONMSVC: main
-fn main() {}