]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.depr_in_cxx11.fail.cpp
Vendor import of libc++ trunk r351319 (just before the release_80
[FreeBSD/FreeBSD.git] / test / std / depr / depr.lib.binders / depr.lib.binder.1st / binder1st.depr_in_cxx11.fail.cpp
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // <functional>
11 //
12 // binder1st
13
14 // UNSUPPORTED: clang-4.0
15 // UNSUPPORTED: c++98, c++03
16 // REQUIRES: verify-support
17
18 // MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS
19 // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS
20 #define _LIBCPP_ENABLE_DEPRECATION_WARNINGS
21 #define _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS
22
23 #include <functional>
24
25 #include "../test_func.h"
26 #include "test_macros.h"
27
28 int main()
29 {
30     typedef std::binder1st<test_func> B1ST; // expected-error{{'binder1st<test_func>' is deprecated}}
31 }