projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99e57f0
)
[clang][Interp] Add missing static_assert messages
author
Timm Bäder
<tbaeder@redhat.com>
Thu, 30 Mar 2023 13:43:14 +0000
(15:43 +0200)
committer
Timm Bäder
<tbaeder@redhat.com>
Thu, 30 Mar 2023 13:43:43 +0000
(15:43 +0200)
This broke builders, e.g.
https://lab.llvm.org/buildbot/#builders/139/builds/38250
clang/test/AST/Interp/functions.cpp
patch
|
blob
|
history
diff --git
a/clang/test/AST/Interp/functions.cpp
b/clang/test/AST/Interp/functions.cpp
index
48862d3
..
9c0d516
100644
(file)
--- a/
clang/test/AST/Interp/functions.cpp
+++ b/
clang/test/AST/Interp/functions.cpp
@@
-150,7
+150,7
@@
namespace FunctionReturnType {
return m;
}
- static_assert(foo() == 10);
+ static_assert(foo() == 10
, ""
);
struct S {
int i;
@@
-158,7
+158,7
@@
namespace FunctionReturnType {
};
constexpr S s{ 12 };
- static_assert(s.fp == nullptr); // zero-initialized function pointer.
+ static_assert(s.fp == nullptr
, ""
); // zero-initialized function pointer.
}
}