[libcxx-commits] [libcxx] [libc++] Avoid including libc++ private header in std/ test (PR #79856)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 29 08:14:02 PST 2024
https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/79856
Fixes #79783
>From ecef76ccb07f4b0addbba7af05b39966710f9ee0 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Mon, 29 Jan 2024 11:13:11 -0500
Subject: [PATCH] [libc++] Avoid including libc++ private header in std/ test
Fixes #79783
---
.../sequences/array/size_and_alignment.compile.pass.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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 b7fb40c988678ae..209e24964807d91 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
@@ -22,7 +22,10 @@
#include <array>
#include <cstddef>
#include <type_traits>
-#include <__type_traits/datasizeof.h>
+
+#ifdef _LIBCPP_VERSION
+# include <__type_traits/datasizeof.h>
+#endif
#include "test_macros.h"
More information about the libcxx-commits
mailing list