Skip to content

Commit f79722b

Browse files
committed
[clang][bytecode][NFC] Move test case to -verify=both style
1 parent 25f87f2 commit f79722b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

clang/test/AST/ByteCode/references.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,16 @@ static_assert(testGetValue() == 30, "");
7171

7272
constexpr const int &MCE = 20;
7373
static_assert(MCE == 20, "");
74-
static_assert(MCE == 30, ""); // expected-error {{static assertion failed}} \
75-
// expected-note {{evaluates to '20 == 30'}} \
76-
// ref-error {{static assertion failed}} \
77-
// ref-note {{evaluates to '20 == 30'}}
74+
static_assert(MCE == 30, ""); // both-error {{static assertion failed}} \
75+
// both-note {{evaluates to '20 == 30'}}
7876

7977
constexpr int LocalMCE() {
8078
const int &m = 100;
8179
return m;
8280
}
8381
static_assert(LocalMCE() == 100, "");
84-
static_assert(LocalMCE() == 200, ""); // expected-error {{static assertion failed}} \
85-
// expected-note {{evaluates to '100 == 200'}} \
86-
// ref-error {{static assertion failed}} \
87-
// ref-note {{evaluates to '100 == 200'}}
82+
static_assert(LocalMCE() == 200, ""); // both-error {{static assertion failed}} \
83+
// both-note {{evaluates to '100 == 200'}}
8884

8985
struct S {
9086
int i, j;

0 commit comments

Comments
 (0)