diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-05-10 20:37:43 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-05-10 20:37:43 +0000 |
commit | d75e451471d0fd8163203c9aa1451cd7f7e6ac28 (patch) | |
tree | 53f49d55eec3dba6f4e09a01d708099b41862303 /libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func | |
parent | ff158254018e70f7440e5fb177cbd3257ca8ae1a (diff) | |
download | bcm5719-llvm-d75e451471d0fd8163203c9aa1451cd7f7e6ac28.tar.gz bcm5719-llvm-d75e451471d0fd8163203c9aa1451cd7f7e6ac28.zip |
Implement LWG 2591 - Patch from K-Ballo
llvm-svn: 302724
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func')
-rw-r--r-- | libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp b/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp index 53476a27473..7a4678ad1ca 100644 --- a/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp @@ -63,6 +63,7 @@ int main() assert(A::count == 1); assert(f.target<A>()); assert(f.target<int(*)(int)>() == 0); + assert(f.target<int>() == nullptr); } assert(A::count == 0); { @@ -70,6 +71,7 @@ int main() assert(A::count == 0); assert(f.target<int(*)(int)>()); assert(f.target<A>() == 0); + assert(f.target<int>() == nullptr); } assert(A::count == 0); { @@ -77,6 +79,7 @@ int main() assert(A::count == 1); assert(f.target<A>()); assert(f.target<int(*)(int)>() == 0); + assert(f.target<int>() == nullptr); } assert(A::count == 0); { @@ -84,6 +87,7 @@ int main() assert(A::count == 0); assert(f.target<int(*)(int)>()); assert(f.target<A>() == 0); + assert(f.target<int>() == nullptr); } assert(A::count == 0); } |