diff options
author | Louis Dionne <ldionne@apple.com> | 2018-11-19 20:21:45 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2018-11-19 20:21:45 +0000 |
commit | e0ac0692865f1cd2b0da268b4de9543d379d2fc9 (patch) | |
tree | 705eb96c7eb0579a02a3b04766323ef8cfbf9285 /libcxx/test/std/utilities/function.objects/refwrap | |
parent | 0c3e3115e8f490fe6f2afe37678d7c42050fe4a9 (diff) | |
download | bcm5719-llvm-e0ac0692865f1cd2b0da268b4de9543d379d2fc9.tar.gz bcm5719-llvm-e0ac0692865f1cd2b0da268b4de9543d379d2fc9.zip |
[libcxx] Update test of trivial copyability of reference_wrapper
N4151 is not an extension anymore, it was standardized in C++14.
llvm-svn: 347263
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/refwrap')
-rw-r--r-- | libcxx/test/std/utilities/function.objects/refwrap/type_properties.pass.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libcxx/test/std/utilities/function.objects/refwrap/type_properties.pass.cpp b/libcxx/test/std/utilities/function.objects/refwrap/type_properties.pass.cpp index 261a306ca15..6790a111699 100644 --- a/libcxx/test/std/utilities/function.objects/refwrap/type_properties.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/refwrap/type_properties.pass.cpp @@ -11,8 +11,8 @@ // reference_wrapper -// Test that reference wrapper meets the requirements of TriviallyCopyable, -// CopyConstructible and CopyAssignable. +// Test that reference wrapper meets the requirements of CopyConstructible and +// CopyAssignable, and TriviallyCopyable (starting in C++14). // Test fails due to use of is_trivially_* trait. // XFAIL: gcc-4.9 @@ -48,8 +48,9 @@ void test() typedef std::reference_wrapper<T> Wrap; static_assert(std::is_copy_constructible<Wrap>::value, ""); static_assert(std::is_copy_assignable<Wrap>::value, ""); - // Extension up for standardization: See N4151. +#if TEST_STD_VER >= 14 static_assert(std::is_trivially_copyable<Wrap>::value, ""); +#endif } int main() |