| //===----------------------------------------------------------------------===// |
| // 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 |
| //===----------------------------------------------------------------------===// |
| typedef std::logical_not<int> F; |
| static_assert((std::is_same<F::argument_type, int>::value), "" ); |
| static_assert((std::is_same<F::result_type, bool>::value), "" ); |
| typedef std::logical_not<> F2; |
| constexpr bool foo = std::logical_not<int> () (36); |
| static_assert ( !foo, "" ); |
| constexpr bool bar = std::logical_not<> () (36); |
| static_assert ( !bar, "" ); |