From 5a83710e371fe68a06e6e3876c6a2c8b820a8976 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 20 Dec 2014 01:40:03 +0000 Subject: Move test into test/std subdirectory. llvm-svn: 224658 --- .../logical.operations/logical_not.pass.cpp | 39 ---------------------- 1 file changed, 39 deletions(-) delete mode 100644 libcxx/test/utilities/function.objects/logical.operations/logical_not.pass.cpp (limited to 'libcxx/test/utilities/function.objects/logical.operations/logical_not.pass.cpp') diff --git a/libcxx/test/utilities/function.objects/logical.operations/logical_not.pass.cpp b/libcxx/test/utilities/function.objects/logical.operations/logical_not.pass.cpp deleted file mode 100644 index 12b3543c5c6..00000000000 --- a/libcxx/test/utilities/function.objects/logical.operations/logical_not.pass.cpp +++ /dev/null @@ -1,39 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// - -// logical_not - -#include -#include -#include - -int main() -{ - typedef std::logical_not F; - const F f = F(); - static_assert((std::is_base_of, F>::value), ""); - assert(!f(36)); - assert(f(0)); -#if _LIBCPP_STD_VER > 11 - typedef std::logical_not<> F2; - const F2 f2 = F2(); - assert(!f2(36)); - assert( f2(0)); - assert(!f2(36L)); - assert( f2(0L)); - - constexpr bool foo = std::logical_not () (36); - static_assert ( !foo, "" ); - - constexpr bool bar = std::logical_not<> () (36); - static_assert ( !bar, "" ); -#endif -} -- cgit v1.2.3