[clang] [clang] [test] Adjust XFAILs for windows in unique_object_duplication.cpp (PR #126139)

Martin Storsjö via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 6 13:53:59 PST 2025


https://github.com/mstorsjo created https://github.com/llvm/llvm-project/pull/126139

This test does succeed in MinGW configurations.

>From 30a0f8b46a55965a0ebbab066cf62b77f6ab9e5c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin at martin.st>
Date: Thu, 6 Feb 2025 23:18:07 +0200
Subject: [PATCH] [clang] [test] Adjust XFAILs for windows in
 unique_object_duplication.cpp

This test does succeed in MinGW configurations.
---
 clang/test/SemaCXX/unique_object_duplication.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/test/SemaCXX/unique_object_duplication.cpp b/clang/test/SemaCXX/unique_object_duplication.cpp
index 8a19fb7b81187a8..4b41bfbfdc2f758 100644
--- a/clang/test/SemaCXX/unique_object_duplication.cpp
+++ b/clang/test/SemaCXX/unique_object_duplication.cpp
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -fsyntax-only -verify=hidden -Wunique-object-duplication -fvisibility=hidden -Wno-unused-value %s
 // RUN: %clang_cc1 -fsyntax-only -verify -Wunique-object-duplication -Wno-unused-value %s
-// The check is currently disabled on windows. The test should fail because we're not getting the expected warnings.
-// XFAIL: target={{.*}}-windows{{.*}}, {{.*}}-ps{{(4|5)(-.+)?}}
+// The check is currently disabled on windows in MSVC-like environments. The test should fail because we're not getting the expected warnings.
+// XFAIL: target={{.*}}-windows-msvc, {{.*}}-ps{{(4|5)(-.+)?}}
 
 #include "unique_object_duplication.h"
 



More information about the cfe-commits mailing list