[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / utilities / function.objects / negators / not2.pass.cpp
blobe097f272b76cf1e8f30d3b8780dbe4690ea8c8b4
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // <functional>
11 // not2
13 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX20_REMOVED_BINDER_TYPEDEFS
14 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX20_REMOVED_NEGATORS
15 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS
17 #include <functional>
18 #include <cassert>
20 #include "test_macros.h"
22 int main(int, char**)
24 typedef std::logical_and<int> F;
25 assert(!std::not2(F())(36, 36));
26 assert( std::not2(F())(36, 0));
27 assert( std::not2(F())(0, 36));
28 assert( std::not2(F())(0, 0));
30 return 0;