[libcxx-commits] [libcxx] r359108 - Make the test object callable. libstdc++'s bind checks that (libc++ currently does not). Thanks to Jonathan Wakely for the fix.

Marshall Clow via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 24 08:33:56 PDT 2019


Author: marshall
Date: Wed Apr 24 08:33:55 2019
New Revision: 359108

URL: http://llvm.org/viewvc/llvm-project?rev=359108&view=rev
Log:
Make the test object callable. libstdc++'s bind checks that (libc++ currently does not). Thanks to Jonathan Wakely for the fix.

Modified:
    libcxx/trunk/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp

Modified: libcxx/trunk/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp?rev=359108&r1=359107&r2=359108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp Wed Apr 24 08:33:55 2019
@@ -25,7 +25,7 @@ test(const T&)
 #endif
 }
 
-struct C {};
+struct C {int operator()(...) const { return 0; }};
 
 int main(int, char**)
 {




More information about the libcxx-commits mailing list