From: Eric Fiselier Date: Wed, 20 Jul 2016 05:22:35 +0000 (+0000) Subject: Add missed test in r276090. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5b53598026c315234c4b81909d5d88d42fc01d6;p=platform%2Fupstream%2Fllvm.git Add missed test in r276090. llvm-svn: 276091 --- diff --git a/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp b/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp new file mode 100644 index 0000000..3370a2f --- /dev/null +++ b/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp @@ -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. +// +//===----------------------------------------------------------------------===// + +// + +// See https://llvm.org/bugs/show_bug.cgi?id=20002 + +#include +#include + +using Fn = std::function; +struct S : Fn { using function::function; }; + +int main() { + S f1( Fn{} ); + S f2(std::allocator_arg, std::allocator{}, Fn{}); +} \ No newline at end of file