From aaca9fa482739cc097a7e77bf6a5ee87e8aa6254 Mon Sep 17 00:00:00 2001 From: "许杰友 Jieyou Xu (Joe)" <39484203+jieyouxu@users.noreply.github.com> Date: Wed, 18 Dec 2024 20:11:35 +0800 Subject: 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. --- tests/codegen/meta-filecheck/msvc-prefix-good.rs | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 tests/codegen/meta-filecheck/msvc-prefix-good.rs (limited to 'tests/codegen') 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() {} -- cgit 1.4.1-3-g733a5