[libcxx-commits] [libcxx] f4b5753 - [libcxx][nfc] removes duplicate test file

Christopher Di Bella via libcxx-commits libcxx-commits at lists.llvm.org
Sun May 2 10:46:02 PDT 2021


Author: Christopher Di Bella
Date: 2021-05-02T17:43:05Z
New Revision: f4b5753f889a80241c53872a89d5df412fe2383d

URL: https://github.com/llvm/llvm-project/commit/f4b5753f889a80241c53872a89d5df412fe2383d
DIFF: https://github.com/llvm/llvm-project/commit/f4b5753f889a80241c53872a89d5df412fe2383d.diff

LOG: [libcxx][nfc] removes duplicate test file

`test/std/ranges/range.access/range.access.cbegin/incomplete.compile.verify.cpp`
was accidentally copied (and apparently the author either forgot to
delete it or forgot to commit the deletion).

TEST=`ninja cxx && ninja check-cxx` locally

Added: 
    

Modified: 
    

Removed: 
    libcxx/test/std/ranges/range.access/range.access.cbegin/incomplete.compile.verify copy.cpp


################################################################################
diff  --git a/libcxx/test/std/ranges/range.access/range.access.cbegin/incomplete.compile.verify copy.cpp b/libcxx/test/std/ranges/range.access/range.access.cbegin/incomplete.compile.verify copy.cpp
deleted file mode 100644
index 3e63113bdf7a9..0000000000000
--- a/libcxx/test/std/ranges/range.access/range.access.cbegin/incomplete.compile.verify copy.cpp	
+++ /dev/null
@@ -1,41 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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
-//
-//===----------------------------------------------------------------------===//
-
-// UNSUPPORTED: c++03, c++11, c++14, c++17
-// UNSUPPORTED: libcpp-no-concepts
-// UNSUPPORTED: gcc-10
-
-// unspecified begin;
-
-#include <ranges>
-
-#include <type_traits>
-
-using cbegin_t = decltype(std::ranges::cbegin);
-
-// clang-format off
-template <class T>
-requires(!std::invocable<cbegin_t&, T>)
-void f() {}
-// clang-format on
-
-void test() {
-  struct incomplete;
-  f<incomplete(&)[]>();
-  // expected-error@*:* {{"`std::ranges::cbegin` is SFINAE-unfriendly on arrays of an incomplete type."}}
-  // expected-error at -2 {{no matching function for call to 'f'}}
-  f<incomplete(&)[10]>();
-  // expected-error@*:* {{"`std::ranges::cbegin` is SFINAE-unfriendly on arrays of an incomplete type."}}
-  // expected-error at -2 {{no matching function for call to 'f'}}
-  f<incomplete(&)[2][2]>();
-  // expected-error@*:* {{"`std::ranges::cbegin` is SFINAE-unfriendly on arrays of an incomplete type."}}
-  // expected-error at -2 {{no matching function for call to 'f'}}
-
-  // This is okay because calling `std::ranges::cbegin` on any rvalue is ill-formed.
-  f<incomplete(&&)[10]>();
-}


        


More information about the libcxx-commits mailing list