We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f2f570 commit 32d10afCopy full SHA for 32d10af
clang/test/CXX/drs/cwg24xx.cpp
@@ -223,7 +223,9 @@ struct S {
223
virtual void f(); // #cwg2496-f
224
virtual void g() &; // #cwg2496-g
225
virtual void h(); // #cwg2496-h
226
- virtual void i(); // #cwg2496-i
+ virtual void i();
227
+ virtual void j() &;
228
+ virtual void k() &&;
229
};
230
231
struct T : S {
@@ -237,6 +239,8 @@ struct T : S {
237
239
// expected-error@-1 {{cannot overload a member function with ref-qualifier '&&' with a member function without a ref-qualifier}}
238
240
// expected-note@#cwg2496-h {{previous declaration is here}}
241
virtual void i();
242
243
+ virtual void k() &;
244
245
#endif
246
}
0 commit comments