Skip to content

Commit b5f4f64

Browse files
committed
[ConstEval] Accept differing outputs in test case
Linux and macOS seem to differ in the output of one diagnostic. Accept both for now to unblock CI and reland the fix.
1 parent 92e524d commit b5f4f64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/test/AST/ByteCode/cxx20.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ static_assert(!b5);
125125
constexpr auto b6 = bar(p1) == ""; // ref-error {{must be initialized by a constant expression}} \
126126
// ref-note {{comparison of addresses of potentially overlapping literals}}
127127
constexpr auto b7 = bar(p1) + 1 == ""; // both-error {{must be initialized by a constant expression}} \
128-
// ref-note {{comparison against pointer '&"test1"[6]' that points past the end of a complete object has unspecified value}} \
129-
// expected-note {{comparison against pointer '&"test1"[6] + 1' that points past the end of a complete object has unspecified value}}
128+
// both-note-re {{comparison against pointer '&"test1"[6]{{( \+ 1)?}}' that points past the end of a complete object has unspecified value}}
130129

131130
namespace UninitializedFields {
132131
class A {

0 commit comments

Comments
 (0)