File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
clang/test/CXX/class/class.mem Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,11 @@ template<typename B> struct CtorDtorName : B {
115115 ~CtorDtorName (); // expected-error {{identifier 'CtorDtorName' after '~' in destructor name does not name a type}}
116116};
117117
118- struct S {
118+ struct S { // expected-note {{'S' declared here}}
119119 enum E {
120120 R = 11 ,
121- S = 12 // expected-error{{member 'S' has the same name as its class}}
121+ S = 12 // expected-error {{member 'S' has the same name as its class}}
122122 };
123123 static_assert (E::R == 11 , " E::R is not 11" );
124- static_assert (E::S == 12 , " E::S is not 12" ); // expected-error{{no member named 'S' in 'S::E'}}
124+ static_assert (E::S == 12 , " E::S is not 12" ); // expected-error {{no member named 'S' in 'S::E'}}
125125};
You can’t perform that action at this time.
0 commit comments