diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-11-01 05:14:31 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-11-01 05:14:31 +0000 |
commit | 7c1ef4a88c4f19463460adb2480adfe398edb908 (patch) | |
tree | 44223db2c5aa17f57458c1dc240531568b88d205 /llvm/unittests/ADT/OptionalTest.cpp | |
parent | a31174efe0c4c7c2547ecdd52f6e4d4e1027213d (diff) | |
download | bcm5719-llvm-7c1ef4a88c4f19463460adb2480adfe398edb908.tar.gz bcm5719-llvm-7c1ef4a88c4f19463460adb2480adfe398edb908.zip |
Revert rL317019, "[ADT] Split optional to only include copy mechanics and dtor for non-trivial types."
Seems g++-4.8 (eg. Ubuntu 14.04) doesn't like this.
llvm-svn: 317077
Diffstat (limited to 'llvm/unittests/ADT/OptionalTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/OptionalTest.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/unittests/ADT/OptionalTest.cpp b/llvm/unittests/ADT/OptionalTest.cpp index a9a37bf820d..46d4fe0780c 100644 --- a/llvm/unittests/ADT/OptionalTest.cpp +++ b/llvm/unittests/ADT/OptionalTest.cpp @@ -518,14 +518,5 @@ TEST_F(OptionalTest, OperatorGreaterEqual) { CheckRelation<GreaterEqual>(InequalityLhs, InequalityRhs, !IsLess); } -#if (__has_feature(is_trivially_copyable) && defined(_LIBCPP_VERSION)) || \ - (defined(__GNUC__) && __GNUC__ >= 5) -static_assert(std::is_trivially_copyable<Optional<int>>::value, - "Should be trivially copyable"); -static_assert( - !std::is_trivially_copyable<Optional<NonDefaultConstructible>>::value, - "Shouldn't be trivially copyable"); -#endif - } // end anonymous namespace |