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, "");
71
71
72
72
constexpr const int &MCE = 20 ;
73
73
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'}}
78
76
79
77
constexpr int LocalMCE () {
80
78
const int &m = 100 ;
81
79
return m;
82
80
}
83
81
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'}}
88
84
89
85
struct S {
90
86
int i, j;
You can’t perform that action at this time.
0 commit comments