summaryrefslogtreecommitdiffstats
path: root/pstl/test/support/stdlib/memory
diff options
context:
space:
mode:
Diffstat (limited to 'pstl/test/support/stdlib/memory')
-rw-r--r--pstl/test/support/stdlib/memory26
1 files changed, 26 insertions, 0 deletions
diff --git a/pstl/test/support/stdlib/memory b/pstl/test/support/stdlib/memory
new file mode 100644
index 00000000000..7d110912296
--- /dev/null
+++ b/pstl/test/support/stdlib/memory
@@ -0,0 +1,26 @@
+// -*- C++ -*-
+//===-- memory ------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _TEST_SUPPORT_STDLIB_MEMORY
+#define _TEST_SUPPORT_STDLIB_MEMORY
+
+#include_next <memory>
+
+#include <pstl/internal/pstl_config.h>
+
+#if _PSTL_EXECUTION_POLICIES_DEFINED
+// If <execution> has already been included, pull in implementations
+# include <pstl/internal/glue_memory_impl.h>
+#else
+// Otherwise just pull in forward declarations
+# include <pstl/internal/glue_memory_defs.h>
+# define _PSTL_MEMORY_FORWARD_DECLARED 1
+#endif
+
+#endif /* _TEST_SUPPORT_STDLIB_MEMORY */
OpenPOWER on IntegriCloud