[clang] a0db738 - [clang][Interp] Add missing static_assert messages
Douglas Yung via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 21 20:29:04 PDT 2023
Author: Douglas Yung
Date: 2023-08-21T20:28:39-07:00
New Revision: a0db73850439c6fb72409dbef6d88ef2aef6f9f1
URL: https://github.com/llvm/llvm-project/commit/a0db73850439c6fb72409dbef6d88ef2aef6f9f1
DIFF: https://github.com/llvm/llvm-project/commit/a0db73850439c6fb72409dbef6d88ef2aef6f9f1.diff
LOG: [clang][Interp] Add missing static_assert messages
Added:
Modified:
clang/test/AST/Interp/floats.cpp
Removed:
################################################################################
diff --git a/clang/test/AST/Interp/floats.cpp b/clang/test/AST/Interp/floats.cpp
index e55df6814b71da..79e501b19a0aba 100644
--- a/clang/test/AST/Interp/floats.cpp
+++ b/clang/test/AST/Interp/floats.cpp
@@ -150,7 +150,7 @@ namespace LongDouble {
return L;
};
- static_assert(f() == __LDBL_MAX__);
+ static_assert(f() == __LDBL_MAX__, "");
#ifdef __FLOAT128__
constexpr __float128 f128() {
@@ -158,7 +158,7 @@ namespace LongDouble {
return L;
};
- static_assert(f128() == __LDBL_MAX__);
+ static_assert(f128() == __LDBL_MAX__, "");
#endif
}
More information about the cfe-commits
mailing list