[libcxx-commits] [PATCH] D109298: [libc++][test] Add tuple trivial destructor test

Joe Loser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jun 11 13:03:11 PDT 2022


jloser marked an inline comment as done.
jloser added inline comments.


================
Comment at: libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp:55-56
 {
-  static_assert(std::is_trivially_destructible<
-      std::tuple<> >::value, "");
-  static_assert(std::is_trivially_destructible<
-      std::tuple<void*> >::value, "");
-  static_assert(std::is_trivially_destructible<
-      std::tuple<int, float> >::value, "");
-  static_assert(!std::is_trivially_destructible<
-      std::tuple<std::string> >::value, "");
-  static_assert(!std::is_trivially_destructible<
-      std::tuple<int, std::string> >::value, "");
+  static_assert(test());
+  test();
 
----------------
philnik wrote:
> 
I assume you mean `> 17` since it's constexpr in C++20. Fixed.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109298/new/

https://reviews.llvm.org/D109298



More information about the libcxx-commits mailing list