Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Remove 'XFAIL: gcc-8 && c++17' from previously failing tuple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey committed Sep 29, 2020
1 parent 8d1ce08 commit 0c0566f
Show file tree
Hide file tree
Showing 23 changed files with 71 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// UNSUPPORTED: c++98, c++03, c++11, c++14, msvc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// UNSUPPORTED: c++98, c++03, c++11, c++14, msvc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// UNSUPPORTED: c++98, c++03, msvc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// UNSUPPORTED: c++98, c++03, msvc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// UNSUPPORTED: c++98, c++03, msvc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// UNSUPPORTED: c++98, c++03, msvc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// template <class... UTypes>
// explicit tuple(UTypes&&... u);

// XFAIL: gcc-4.8, gcc-4.9, gcc-8 && c++17
// XFAIL: gcc-4.8, gcc-4.9

// UNSUPPORTED: c++98, c++03, msvc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// template <class... UTypes> tuple(const tuple<UTypes...>& u);

// XFAIL: gcc-4.8, gcc-4.9, gcc-8 && c++17
// XFAIL: gcc-4.8, gcc-4.9

// UNSUPPORTED: c++98, c++03, msvc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

// <cuda/std/tuple>

// template <class... Types> class tuple;

// tuple(tuple&& u);

// UNSUPPORTED: c++98, c++03, msvc

// XFAIL: gcc-8 && c++17

#include <cuda/std/tuple>
#include <cuda/std/utility>
#include <cuda/std/cassert>

#include "test_macros.h"
#include "MoveOnly.h"

template <typename T>
__host__ __device__
constexpr bool unused(T &&) {return true;}

struct NothrowConstruct
{
__host__ __device__ constexpr NothrowConstruct(int) noexcept {};
};


int main(int, char**)
{
{
typedef cuda::std::tuple<NothrowConstruct, NothrowConstruct> T;
T t(0, 1);
unused(t); // Prevent unused warning

// Test that tuple<> handles noexcept properly
static_assert(cuda::std::is_nothrow_constructible<T, int, int>(), "");
static_assert(cuda::std::is_nothrow_constructible<NothrowConstruct, int>(), "");
}

return 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// <cuda/std/tuple>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: gcc-8 && c++17


// UNSUPPORTED: c++98, c++03, c++11, msvc

Expand Down

0 comments on commit 0c0566f

Please sign in to comment.