diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-07-25 02:08:55 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-07-25 02:08:55 +0000 |
commit | 79586dca74231f652ad158fca10f6fc56fc94e52 (patch) | |
tree | 42c3698fb159eddcd71e87ad91b3c8f9ece65686 /libcxx/test/std | |
parent | 189f88ca35cd038da52bfdb338e37a0c15fa69bb (diff) | |
download | bcm5719-llvm-79586dca74231f652ad158fca10f6fc56fc94e52.tar.gz bcm5719-llvm-79586dca74231f652ad158fca10f6fc56fc94e52.zip |
Make std::is_assignable tolerate references to incomplete types.
llvm-svn: 276599
Diffstat (limited to 'libcxx/test/std')
-rw-r--r-- | libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp index b734a1aa60d..f4736e71342 100644 --- a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp @@ -43,7 +43,7 @@ void test_is_not_assignable() struct D; -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES +#if TEST_STD_VER >= 11 struct C { template <class U> @@ -59,6 +59,8 @@ struct E template <typename T> struct X { T t; }; +struct Incomplete; + int main() { test_is_assignable<int&, int&> (); @@ -67,7 +69,7 @@ int main() test_is_assignable<B, A> (); test_is_assignable<void*&, void*> (); -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES +#if TEST_STD_VER >= 11 test_is_assignable<E, int> (); test_is_not_assignable<int, int&> (); @@ -80,4 +82,5 @@ int main() // pointer to incomplete template type test_is_assignable<X<D>*&, X<D>*> (); + test_is_not_assignable<Incomplete&, Incomplete const&>(); } |