File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -71,20 +71,16 @@ static_assert(testGetValue() == 30, "");
7171
7272constexpr const int &MCE = 20 ;
7373static_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
7977constexpr int LocalMCE () {
8078 const int &m = 100 ;
8179 return m;
8280}
8381static_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
8985struct S {
9086 int i, j;
You can’t perform that action at this time.
0 commit comments