diff options
Diffstat (limited to 'libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st')
-rw-r--r-- | libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp | 4 | ||||
-rw-r--r-- | libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.pass.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp b/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp index b06816a225e..e00cfe7c328 100644 --- a/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp +++ b/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp @@ -24,7 +24,9 @@ #include "../test_func.h" #include "test_macros.h" -int main() +int main(int, char**) { std::bind1st(test_func(1), 5); // expected-error{{'bind1st<test_func, int>' is deprecated}} + + return 0; } diff --git a/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.pass.cpp b/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.pass.cpp index e9fc7b39c01..5d89f369f98 100644 --- a/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.pass.cpp +++ b/libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.pass.cpp @@ -18,7 +18,9 @@ #include "../test_func.h" -int main() +int main(int, char**) { assert(std::bind1st(test_func(1), 5)(10.) == -5.); + + return 0; } |