summaryrefslogtreecommitdiff
path: root/libcxxabi/test/test_demangle.pass.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2024-07-26 20:29:14 +0300
committerGitHub <noreply@github.com>2024-07-26 20:29:14 +0300
commitca69f515fe29fa98b7ab52e49c5b401bb22f64f6 (patch)
treeb645782e6dfc76280357301bb6cd3325aa6b213b /libcxxabi/test/test_demangle.pass.cpp
parent481eb4f5159b753497ef20cb646eb6169f3eb078 (diff)
[libcxx] [test] Detect the UCRT printf("%a") formatting bug (#99846)
This fixes testing with MinGW, if built without __USE_MINGW_ANSI_STDIO=1. On x86 MinGW, such a configuration fails printf tests with long doubles due to mismatches between 80 and 64 bit long doubles - but on ARM, there's no such issue, so building without __USE_MINGW_ANSI_STDIO=1 is perfectly valid there. Add another similar XFAIL to a libcxxabi test; this test isn't executed in MSVC environments, so no XFAIL has been needed so far.
Diffstat (limited to 'libcxxabi/test/test_demangle.pass.cpp')
-rw-r--r--libcxxabi/test/test_demangle.pass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxxabi/test/test_demangle.pass.cpp b/libcxxabi/test/test_demangle.pass.cpp
index fe5598991b83..ab783cf9d96f 100644
--- a/libcxxabi/test/test_demangle.pass.cpp
+++ b/libcxxabi/test/test_demangle.pass.cpp
@@ -17,6 +17,8 @@
// 80-bit format, and this demangling test is failing on it.
// XFAIL: LIBCXX-ANDROID-FIXME && target={{i686|x86_64}}-{{.+}}-android{{.*}}
+// XFAIL: win32-broken-printf-a-precision
+
#include "support/timer.h"
#include <algorithm>
#include <cassert>