diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-05-06 16:58:36 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-05-06 16:58:36 +0000 |
commit | eedfabd96e97c39080e4e91c21f17a7893932afa (patch) | |
tree | 242e80c347fe3a524822b00091c436a9f7df2fb7 /libcxx/test/utilities/function.objects/func.wrap/func.wrap.func | |
parent | 3e4fc3ef24387b8c19a877a96619b3351924d3ba (diff) | |
download | bcm5719-llvm-eedfabd96e97c39080e4e91c21f17a7893932afa.tar.gz bcm5719-llvm-eedfabd96e97c39080e4e91c21f17a7893932afa.zip |
Expose accidentally removed __compressed_pair constructor taking piecewise_construct_t. This fixes http://llvm.org/bugs/show_bug.cgi?id=15918 .
llvm-svn: 181217
Diffstat (limited to 'libcxx/test/utilities/function.objects/func.wrap/func.wrap.func')
-rw-r--r-- | libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_F.pass.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_F.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_F.pass.cpp index c027ebdb363..8a16313d9be 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_F.pass.cpp +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_F.pass.cpp @@ -49,6 +49,11 @@ int A::count = 0; int g(int) {return 0;} +class Foo { +public: + void bar(int k) { } +}; + int main() { { @@ -77,4 +82,9 @@ int main() assert(f); assert(f.target<int (A::*)(int) const>() != 0); } + { + Foo f; + std::function<void(int)> fun = std::bind(&Foo::bar, &f, std::placeholders::_1); + fun(10); + } } |