================
@@ -54,4 +54,11 @@ struct B {
   void operator delete(void*) volatile; //expected-error {{static member 
function cannot have 'volatile' qualifier}}
   void operator delete[](void*) volatile; //expected-error {{static member 
function cannot have 'volatile' qualifier}}
 };
-}
+  struct RefQualifierLValue {
+    void* operator new(size_t bytes) &; // expected-error {{static member 
function cannot have '&' qualifier}}
+  };
+
+  struct RefQualifierRValue {
+    void* operator new(size_t bytes) &&; // expected-error {{static member 
function cannot have '&&' qualifier}}
+  };
+  } // namespace GH79748
----------------
Fznamznon wrote:

Could you please add a newline at the end of file?

https://github.com/llvm/llvm-project/pull/215644
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to