Author: ericwf Date: Wed Jul 20 00:22:35 2016 New Revision: 276091 URL: http://llvm.org/viewvc/llvm-project?rev=276091&view=rev Log: Add missed test in r276090.
Added: libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp Added: libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp?rev=276091&view=auto ============================================================================== --- libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp (added) +++ libcxx/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp Wed Jul 20 00:22:35 2016 @@ -0,0 +1,23 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// <functional> + +// See https://llvm.org/bugs/show_bug.cgi?id=20002 + +#include <functional> +#include <type_traits> + +using Fn = std::function<void()>; +struct S : Fn { using function::function; }; + +int main() { + S f1( Fn{} ); + S f2(std::allocator_arg, std::allocator<void>{}, Fn{}); +} \ No newline at end of file _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits