[libcxx-commits] [PATCH] D109298: [libc++][NFC] Make tuple dtor test compile test

Joe Loser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Sep 6 18:30:22 PDT 2021


jloser updated this revision to Diff 370979.
jloser added a comment.

[NFC] Remove extra whitespace from test


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109298

Files:
  libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.compile.pass.cpp
  libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp


Index: libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.compile.pass.cpp
===================================================================
--- libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.compile.pass.cpp
+++ libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.compile.pass.cpp
@@ -20,23 +20,13 @@
 
 #include <tuple>
 #include <string>
-#include <cassert>
 #include <type_traits>
 
-#include "test_macros.h"
-
-int main(int, char**)
+void test()
 {
-  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, "");
-
-  return 0;
+  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, "");
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109298.370979.patch
Type: text/x-patch
Size: 1390 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210907/388919ac/attachment.bin>


More information about the libcxx-commits mailing list