[clang] 6ccf330 - [clang][Interp] Add missing static_assert messages
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Thu May 4 00:10:38 PDT 2023
Author: Timm Bäder
Date: 2023-05-04T09:10:21+02:00
New Revision: 6ccf3307f49fe8265802320be837a9b4210ebf05
URL: https://github.com/llvm/llvm-project/commit/6ccf3307f49fe8265802320be837a9b4210ebf05
DIFF: https://github.com/llvm/llvm-project/commit/6ccf3307f49fe8265802320be837a9b4210ebf05.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 7d45999a997c..ab75a537d0ce 100644
--- a/clang/test/AST/Interp/floats.cpp
+++ b/clang/test/AST/Interp/floats.cpp
@@ -101,14 +101,14 @@ namespace unary {
assert(f == 1.0);
return 1.0;
}
- static_assert(a() == 1.0);
+ static_assert(a() == 1.0, "");
constexpr float b() {
float f = __FLT_MAX__;
f++;
return f;
}
- static_assert(b() == __FLT_MAX__);
+ static_assert(b() == __FLT_MAX__, "");
}
More information about the cfe-commits
mailing list