//===----------------------------------------------------------------------===// // // 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 // SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. // //===----------------------------------------------------------------------===// // UNSUPPORTED: gcc-6, gcc-7, gcc-8, gcc-9 // template unexpected(E) -> unexpected; #include #include struct Foo {}; static_assert(cuda::std::same_as>); static_assert(cuda::std::same_as>); static_assert( cuda::std::same_as(5))), cuda::std::unexpected>); int main(int, char**) { return 0; }