From e3e24ad25fb1df489518d83550cde0a40c7c562c Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 10 Apr 2019 18:52:24 +0000 Subject: Fix header inclusion order failures Summary: See https://bugs.llvm.org/show_bug.cgi?id=41432 Subscribers: libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D60525 llvm-svn: 358121 --- .../header_inclusion_order_algorithm_0.pass.cpp | 24 ++++++++++++++++++++++ .../header_inclusion_order_algorithm_1.pass.cpp | 24 ++++++++++++++++++++++ .../pstl/header_inclusion_order_memory_0.pass.cpp | 24 ++++++++++++++++++++++ .../pstl/header_inclusion_order_memory_1.pass.cpp | 24 ++++++++++++++++++++++ .../pstl/header_inclusion_order_numeric_0.pass.cpp | 24 ++++++++++++++++++++++ .../pstl/header_inclusion_order_numeric_1.pass.cpp | 24 ++++++++++++++++++++++ 6 files changed, 144 insertions(+) create mode 100644 pstl/test/pstl/header_inclusion_order_algorithm_0.pass.cpp create mode 100644 pstl/test/pstl/header_inclusion_order_algorithm_1.pass.cpp create mode 100644 pstl/test/pstl/header_inclusion_order_memory_0.pass.cpp create mode 100644 pstl/test/pstl/header_inclusion_order_memory_1.pass.cpp create mode 100644 pstl/test/pstl/header_inclusion_order_numeric_0.pass.cpp create mode 100644 pstl/test/pstl/header_inclusion_order_numeric_1.pass.cpp (limited to 'pstl/test') diff --git a/pstl/test/pstl/header_inclusion_order_algorithm_0.pass.cpp b/pstl/test/pstl/header_inclusion_order_algorithm_0.pass.cpp new file mode 100644 index 0000000..0b0d79b --- /dev/null +++ b/pstl/test/pstl/header_inclusion_order_algorithm_0.pass.cpp @@ -0,0 +1,24 @@ +// -*- C++ -*- +//===-- header_inclusion_order_algorithm_0.pass.cpp -----------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#include "support/pstl_test_config.h" + +#ifdef PSTL_STANDALONE_TESTS +#include "pstl/execution" +#include "pstl/algorithm" +#else +#include +#include +#endif // PSTL_STANDALONE_TESTS + +int32_t +main() +{ + return 0; +} diff --git a/pstl/test/pstl/header_inclusion_order_algorithm_1.pass.cpp b/pstl/test/pstl/header_inclusion_order_algorithm_1.pass.cpp new file mode 100644 index 0000000..e346a3b --- /dev/null +++ b/pstl/test/pstl/header_inclusion_order_algorithm_1.pass.cpp @@ -0,0 +1,24 @@ +// -*- C++ -*- +//===-- header_inclusion_order_algorithm_1.pass.cpp -----------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#include "support/pstl_test_config.h" + +#ifdef PSTL_STANDALONE_TESTS +#include "pstl/algorithm" +#include "pstl/execution" +#else +#include +#include +#endif // PSTL_STANDALONE_TESTS + +int32_t +main() +{ + return 0; +} diff --git a/pstl/test/pstl/header_inclusion_order_memory_0.pass.cpp b/pstl/test/pstl/header_inclusion_order_memory_0.pass.cpp new file mode 100644 index 0000000..1a8a117 --- /dev/null +++ b/pstl/test/pstl/header_inclusion_order_memory_0.pass.cpp @@ -0,0 +1,24 @@ +// -*- C++ -*- +//===-- header_inclusion_order_memory_0.pass.cpp --------------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#include "support/pstl_test_config.h" + +#ifdef PSTL_STANDALONE_TESTS +#include "pstl/execution" +#include "pstl/memory" +#else +#include +#include +#endif // PSTL_STANDALONE_TESTS + +int32_t +main() +{ + return 0; +} diff --git a/pstl/test/pstl/header_inclusion_order_memory_1.pass.cpp b/pstl/test/pstl/header_inclusion_order_memory_1.pass.cpp new file mode 100644 index 0000000..2e34323 --- /dev/null +++ b/pstl/test/pstl/header_inclusion_order_memory_1.pass.cpp @@ -0,0 +1,24 @@ +// -*- C++ -*- +//===-- header_inclusion_order_memory_1.pass.cpp --------------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#include "support/pstl_test_config.h" + +#ifdef PSTL_STANDALONE_TESTS +#include "pstl/memory" +#include "pstl/execution" +#else +#include +#include +#endif // PSTL_STANDALONE_TESTS + +int32_t +main() +{ + return 0; +} diff --git a/pstl/test/pstl/header_inclusion_order_numeric_0.pass.cpp b/pstl/test/pstl/header_inclusion_order_numeric_0.pass.cpp new file mode 100644 index 0000000..1ff596e --- /dev/null +++ b/pstl/test/pstl/header_inclusion_order_numeric_0.pass.cpp @@ -0,0 +1,24 @@ +// -*- C++ -*- +//===-- header_inclusion_order_numeric_0.pass.cpp -------------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#include "support/pstl_test_config.h" + +#ifdef PSTL_STANDALONE_TESTS +#include "pstl/execution" +#include "pstl/numeric" +#else +#include +#include +#endif // PSTL_STANDALONE_TESTS + +int32_t +main() +{ + return 0; +} diff --git a/pstl/test/pstl/header_inclusion_order_numeric_1.pass.cpp b/pstl/test/pstl/header_inclusion_order_numeric_1.pass.cpp new file mode 100644 index 0000000..3c5b8cf --- /dev/null +++ b/pstl/test/pstl/header_inclusion_order_numeric_1.pass.cpp @@ -0,0 +1,24 @@ +// -*- C++ -*- +//===-- header_inclusion_order_numeric_0.pass.cpp -------------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#include "support/pstl_test_config.h" + +#ifdef PSTL_STANDALONE_TESTS +#include "pstl/numeric" +#include "pstl/execution" +#else +#include +#include +#endif // PSTL_STANDALONE_TESTS + +int32_t +main() +{ + return 0; +} -- cgit v1.1