[libcxx-commits] [libcxx] r363111 - Move libc++ specific tests for std::function out of the std directory

Eric Fiselier via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jun 11 15:59:54 PDT 2019


Author: ericwf
Date: Tue Jun 11 15:59:53 2019
New Revision: 363111

URL: http://llvm.org/viewvc/llvm-project?rev=363111&view=rev
Log:
Move libc++ specific tests for std::function out of the std directory

Added:
    libcxx/trunk/test/libcxx/utilities/function.objects/func.wrap/
    libcxx/trunk/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/
    libcxx/trunk/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/
    libcxx/trunk/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp
      - copied, changed from r363110, libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp
    libcxx/trunk/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp
      - copied, changed from r363110, libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp
Removed:
    libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp
    libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp

Copied: libcxx/trunk/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp (from r363110, libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp)
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp?p2=libcxx/trunk/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp&p1=libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp&r1=363110&r2=363111&rev=363111&view=diff
==============================================================================
    (empty)

Copied: libcxx/trunk/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp (from r363110, libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp)
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp?p2=libcxx/trunk/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp&p1=libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp&r1=363110&r2=363111&rev=363111&view=diff
==============================================================================
    (empty)

Removed: libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp?rev=363110&view=auto
==============================================================================
--- libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp (removed)
@@ -1,47 +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
-//
-//===----------------------------------------------------------------------===//
-
-// <functional>
-
-// class function<R(ArgTypes...)>
-
-// function& operator=(function &&);
-
-#include <functional>
-#include <cassert>
-
-#include "test_macros.h"
-
-struct A
-{
-  static std::function<void()> global;
-  static bool cancel;
-
-  ~A() {
-    DoNotOptimize(cancel);
-    if (cancel)
-      global = std::function<void()>(nullptr);
-  }
-  void operator()() {}
-};
-
-std::function<void()> A::global;
-bool A::cancel = false;
-
-int main(int, char**)
-{
-  A::global = A();
-  assert(A::global.target<A>());
-
-  // Check that we don't recurse in A::~A().
-  A::cancel = true;
-  A::global = std::function<void()>(nullptr);
-  assert(!A::global.target<A>());
-
-  return 0;
-}

Removed: libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp?rev=363110&view=auto
==============================================================================
--- libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp (removed)
@@ -1,47 +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
-//
-//===----------------------------------------------------------------------===//
-
-// <functional>
-
-// class function<R(ArgTypes...)>
-
-// function& operator=(nullptr_t);
-
-#include <functional>
-#include <cassert>
-
-#include "test_macros.h"
-
-struct A
-{
-  static std::function<void()> global;
-  static bool cancel;
-
-  ~A() {
-    DoNotOptimize(cancel);
-    if (cancel)
-      global = nullptr;
-  }
-  void operator()() {}
-};
-
-std::function<void()> A::global;
-bool A::cancel = false;
-
-int main(int, char**)
-{
-  A::global = A();
-  assert(A::global.target<A>());
-
-  // Check that we don't recurse in A::~A().
-  A::cancel = true;
-  A::global = nullptr;
-  assert(!A::global.target<A>());
-
-  return 0;
-}




More information about the libcxx-commits mailing list