[libcxx-commits] [libcxx] 863802e - [libc++] Move .fail.cpp test to .verify.cpp

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 3 10:17:47 PST 2022


Author: Louis Dionne
Date: 2022-03-03T13:17:35-05:00
New Revision: 863802ecf3c3e410bdccaf0e34309899800daaab

URL: https://github.com/llvm/llvm-project/commit/863802ecf3c3e410bdccaf0e34309899800daaab
DIFF: https://github.com/llvm/llvm-project/commit/863802ecf3c3e410bdccaf0e34309899800daaab.diff

LOG: [libc++] Move .fail.cpp test to .verify.cpp

Added: 
    libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_literal_type.deprecated.verify.cpp

Modified: 
    

Removed: 
    libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_literal_type.deprecated.fail.cpp


################################################################################
diff  --git a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_literal_type.deprecated.fail.cpp b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_literal_type.deprecated.verify.cpp
similarity index 75%
rename from libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_literal_type.deprecated.fail.cpp
rename to libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_literal_type.deprecated.verify.cpp
index c63524da5b40a..b9ace121e72f0 100644
--- a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_literal_type.deprecated.fail.cpp
+++ b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_literal_type.deprecated.verify.cpp
@@ -15,10 +15,6 @@
 
 #include <type_traits>
 
-#include "test_macros.h"
-
-int main(int, char**) {
-  static_assert(std::is_literal_type<int>::value, ""); // expected-warning {{'is_literal_type<int>' is deprecated}}
-
-  return 0;
+void f() {
+  [[maybe_unused]] std::is_literal_type<int> a; // expected-warning {{'is_literal_type<int>' is deprecated}}
 }


        


More information about the libcxx-commits mailing list