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 //===----------------------------------------------------------------------===//
8 
9 // <functional>
10 
11 // not1
12 //  deprecated in C++17
13 
14 // UNSUPPORTED: clang-4.0
15 // UNSUPPORTED: c++98, c++03, c++11, c++14
16 // REQUIRES: verify-support
17 
18 #include <functional>
19 
20 #include "test_macros.h"
21 
22 struct Predicate {
23     typedef int argument_type;
24     bool operator()(argument_type) const { return true; }
25 };
26 
27 int main(int, char**) {
28     std::not1(Predicate()); // expected-warning {{'not1<Predicate>' is deprecated}}
29 
30     return 0;
31 }
32