[libcxx-commits] [libcxx] cef3e0f - [libc++][C++03] Fix array/size_and_alignment.compile.pass.cpp (#198822)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed May 27 05:31:53 PDT 2026
Author: Nikolas Klauser
Date: 2026-05-27T14:31:47+02:00
New Revision: cef3e0f1280d9cf368caa94b895b61d73c588619
URL: https://github.com/llvm/llvm-project/commit/cef3e0f1280d9cf368caa94b895b61d73c588619
DIFF: https://github.com/llvm/llvm-project/commit/cef3e0f1280d9cf368caa94b895b61d73c588619.diff
LOG: [libc++][C++03] Fix array/size_and_alignment.compile.pass.cpp (#198822)
Added:
Modified:
libcxx/test/std/containers/sequences/array/size_and_alignment.compile.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/containers/sequences/array/size_and_alignment.compile.pass.cpp b/libcxx/test/std/containers/sequences/array/size_and_alignment.compile.pass.cpp
index 53356b4c7eee4..2c8b19d42a062 100644
--- a/libcxx/test/std/containers/sequences/array/size_and_alignment.compile.pass.cpp
+++ b/libcxx/test/std/containers/sequences/array/size_and_alignment.compile.pass.cpp
@@ -14,8 +14,6 @@
// Make sure std::array<T, N> has the correct object size and alignment.
// This test is mostly meant to catch subtle ABI-breaking regressions.
-// XFAIL: FROZEN-CXX03-HEADERS-FIXME
-
// Ignore error about requesting a large alignment not being ABI compatible with older AIX systems.
#if defined(_AIX)
# pragma clang diagnostic ignored "-Waix-compat"
@@ -26,7 +24,11 @@
#include <type_traits>
#ifdef _LIBCPP_VERSION
-# include <__type_traits/datasizeof.h>
+# ifdef _LIBCPP_USE_FROZEN_CXX03_HEADERS
+# include <__cxx03/__type_traits/datasizeof.h>
+# else
+# include <__type_traits/datasizeof.h>
+# endif
#endif
#include "test_macros.h"
More information about the libcxx-commits
mailing list