summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-05-16 16:17:21 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-05-16 16:17:21 +0000
commit15c34d48ba2737dfdfc3cca649366e22c83089ac (patch)
tree5023070f57cca199050f8eb7e2968fe1210068c4 /libcxx/test
parente90c1cb22181b42741053e27d90bced53bea3273 (diff)
downloadbcm5719-llvm-15c34d48ba2737dfdfc3cca649366e22c83089ac.tar.gz
bcm5719-llvm-15c34d48ba2737dfdfc3cca649366e22c83089ac.zip
Redesign of result_of to handle reference-qualified member functions
llvm-svn: 131407
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/utilities/meta/meta.trans/meta.trans.other/result_of.pass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/utilities/meta/meta.trans/meta.trans.other/result_of.pass.cpp b/libcxx/test/utilities/meta/meta.trans/meta.trans.other/result_of.pass.cpp
index 84e14e430cc..eac8ba0c36d 100644
--- a/libcxx/test/utilities/meta/meta.trans/meta.trans.other/result_of.pass.cpp
+++ b/libcxx/test/utilities/meta/meta.trans/meta.trans.other/result_of.pass.cpp
@@ -34,6 +34,10 @@ int main()
static_assert((std::is_same<std::result_of<S&(unsigned char, int&)>::type, double>::value), "Error!");
static_assert((std::is_same<std::result_of<PF1()>::type, bool>::value), "Error!");
static_assert((std::is_same<std::result_of<PMS(std::unique_ptr<S>, int)>::type, void>::value), "Error!");
+ static_assert((std::is_same<std::result_of<PMS(S, int)>::type, void>::value), "Error!");
+ static_assert((std::is_same<std::result_of<PMS(const S&, int)>::type, void>::value), "Error!");
+#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
static_assert((std::is_same<std::result_of<PMD(S)>::type, char&&>::value), "Error!");
+#endif
static_assert((std::is_same<std::result_of<PMD(const S*)>::type, const char&>::value), "Error!");
}
OpenPOWER on IntegriCloud